Step 1 / 5
Release on a tag
Keep the everyday CI workflow on pushes, and add a separate release workflow that only runs on tag events matching v*. Shipping becomes git tag v1.4.0 && git push --tags.
Tag a release and let Codemagic upload to Google Play tracks and TestFlight, then notify the team.
1workflows:2 release:3 triggering:4 events:5 - tag # git tag v1.4.0 && git push --tags6 tag_patterns:7 - pattern: 'v*'8 environment:9 groups:10 - google_play # GOOGLE_PLAY_SERVICE_ACCOUNT_CREDENTIALS11 vars:12 GOOGLE_PLAY_TRACK: internal13 scripts:14 - name: Build AAB with the next build number15 script: |16 BUILD_NUMBER=$(($(google-play get-latest-build-number \17 --package-name "$PACKAGE_NAME" --tracks="$GOOGLE_PLAY_TRACK") + 1))18 flutter build appbundle --release --build-number=$BUILD_NUMBER19 publishing:20 google_play:21 credentials: $GOOGLE_PLAY_SERVICE_ACCOUNT_CREDENTIALS22 track: $GOOGLE_PLAY_TRACK23 submit_as_draft: true24 app_store_connect:25 auth: integration26 submit_to_testflight: true27 beta_groups:28 - QA team29 submit_to_app_store: false30 slack:31 channel: '#releases'32 notify_on_build_start: false
Keep the everyday CI workflow on pushes, and add a separate release workflow that only runs on tag events matching v*. Shipping becomes git tag v1.4.0 && git push --tags.