Skip to content

Commit 3901e3c

Browse files
authored
Update codemagic.yaml
1 parent 4069c40 commit 3901e3c

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

codemagic.yaml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
# Automatically generated on 2022-10-18 UTC from https://codemagic.io/app/634b9fd922ff8dc8a5ba7c19/settings
2+
# Note that this configuration is not an exact match to UI settings. Review and adjust as necessary.
3+
14
workflows:
25
ani-workflow:
36
name: Ani Mobile Workflow
47
max_build_duration: 120
58
environment:
9+
groups:
10+
- Github
611
flutter: 3.3.4
712
xcode: latest
813
cocoapods: default
@@ -25,10 +30,26 @@ workflows:
2530
- flutter build ios --release --no-codesign
2631
- flutter build apk --release --split-per-abi
2732
- flutter build appbundle
33+
- name: Publish to Github
34+
script: |
35+
#!/usr/bin/env zsh
36+
37+
# Publish only for tag builds
38+
if [ -z ${CM_TAG} ]; then
39+
echo "Not a tag build, will not publish GitHub release"
40+
exit 0
41+
fi
42+
43+
gh release create "${CM_TAG}" \
44+
--title "<Your Application Name> ${CM_TAG}" \
45+
--notes-file changelog.md \
46+
build/ios/iphoneos/Runner.app \
47+
build/app/outputs/bundle/release/app-release.aab
48+
build/app/outputs/apk/release/*.apk
2849
artifacts:
29-
- build/ios/iphoneos/Runner.app
30-
- build/app/outputs/bundle/release/app-release.aab
31-
- build/app/outputs/apk/release/*.apk
50+
- build/ios/ipa/*.ipa
51+
- build/android/apk/*.apk
52+
- build/android/apk/*.aab
3253
publishing:
3354
email:
3455
recipients:

0 commit comments

Comments
 (0)