Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy iOS and Android applications to App Store and Google Play (#1009) #1046

Merged
merged 35 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
aeab8c2
Try using Codemagic CLI Tools
SleepySquash Jun 21, 2024
085c374
Try
SleepySquash Jun 21, 2024
db2aa8e
Ok, try this
SleepySquash Jun 21, 2024
a1d1a50
Try
SleepySquash Jun 21, 2024
bb6142c
Fix
SleepySquash Jun 21, 2024
2185629
Try
SleepySquash Jun 21, 2024
94ce1eb
Fix
SleepySquash Jun 21, 2024
03ca7b4
Try cleanup
SleepySquash Jun 21, 2024
84eaa18
Add deploy jobs
SleepySquash Jun 21, 2024
7a3bd95
Try
SleepySquash Jun 21, 2024
0ca910f
Merge remote-tracking branch 'origin/main' into deploy-to-app-store-a…
SleepySquash Jun 24, 2024
4092bcf
Try it again
SleepySquash Jun 24, 2024
b9b58e0
Try
SleepySquash Jun 24, 2024
a97d7ea
Add `--build-name` to `build` Makefile command
SleepySquash Jun 24, 2024
b1f03bc
Try with `0.1.3+104` version
SleepySquash Jun 25, 2024
0eb3597
Merge remote-tracking branch 'origin/main' into deploy-to-app-store-a…
SleepySquash Jun 27, 2024
ec4744f
Corrections [skip ci]
SleepySquash Jun 27, 2024
ce1f286
Merge remote-tracking branch 'origin/main' into deploy-to-app-store-a…
SleepySquash Jul 4, 2024
eeaf218
Add `if`s to jobs
SleepySquash Jul 4, 2024
f11252a
Move `deploy-google-play` job lower
SleepySquash Jul 4, 2024
1dee89d
Try running `release-google-play` job to see what happens
SleepySquash Jul 5, 2024
370f145
Corrections
SleepySquash Jul 5, 2024
5e4bdf9
Try with `checkout` step
SleepySquash Jul 5, 2024
1086497
Bootstrap `fastlane`
SleepySquash Jul 5, 2024
d5d2306
Fix
SleepySquash Jul 5, 2024
5b795a4
Fix
SleepySquash Jul 5, 2024
135b5e2
Try iOS
SleepySquash Jul 5, 2024
17cf2e7
Try?
SleepySquash Jul 8, 2024
138bb4e
Try
SleepySquash Jul 8, 2024
86753b9
Remove `fastlane` completely
SleepySquash Jul 8, 2024
f3eb578
Fix `release-app-store`
SleepySquash Jul 8, 2024
e12e19f
Fix
SleepySquash Jul 8, 2024
279607b
Uncomment `if`s
SleepySquash Jul 8, 2024
2ec60dc
Merge branch 'main' into deploy-to-app-store-and-google-play
SleepySquash Jul 8, 2024
4556d41
Corrections
tyranron Jul 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,55 @@ jobs:
git push --force origin gh-pages
if: ${{ steps.skip.outputs.no == 'true' }}

publish-app-store:
name: publish (App Store)
if: ${{ github.ref == 'refs/heads/main'
|| startsWith(github.ref, 'refs/tags/v') }}
needs: ["docker-push"]
runs-on: macos-latest
steps:
- uses: actions/download-artifact@v4
with:
name: build-ipa-${{ github.run_number }}

- name: Prepare App Store Connect key
run: |
mkdir -p $HOME/.private_keys/
echo "${{ secrets.APP_STORE_KEY }}" \
>> $HOME/.private_keys/AuthKey_${{ secrets.APP_STORE_IDENTIFIER }}.p8

- run: xcrun altool --upload-app --file *.ipa --type ios
--apiKey ${{ secrets.APP_STORE_IDENTIFIER }}
--apiIssuer ${{ secrets.APP_STORE_ISSUER }}

- name: Cleanup App Store Connect key
run: rm -rf $HOME/.private_keys/AuthKey_${{ secrets.APP_STORE_IDENTIFIER }}.p8
if: ${{ always() }}

# NOTE: When pushing `v*` version Git tags, remember to cancel the CI workflow
# running for the `main` branch to prevent uploading an `.aab` file with
# the same `versionCode`, because Google Play expects it to be unique
# and errors on duplicates uploading.
publish-google-play:
name: publish (Google Play)
if: ${{ github.ref == 'refs/heads/main'
|| startsWith(github.ref, 'refs/tags/v') }}
needs: ["docker-push"]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: build-appbundle-${{ github.run_number }}
- run: mv *.aab app.aab

- uses: r0adkll/upload-google-play@v1
with:
packageName: ${{ secrets.FCM_BUNDLE_ID }}
releaseFiles: app.aab
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT }}
status: draft
track: internal

release-appcast:
name: release (Sparkle Appcast XML)
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
Expand Down
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ android {
defaultConfig {
applicationId "com.team113.messenger"
minSdkVersion 24
targetSdkVersion 33
targetSdkVersion 34
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
Expand Down
Loading