-
-
Notifications
You must be signed in to change notification settings - Fork 391
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
upload to Google Play with GitHub Actions, remove Bitrise #4682
Changes from all commits
838791d
2c088b3
06f825b
9d30a23
9a898fc
75a246d
50e8280
1aa96a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -1,15 +1,11 @@ | ||||
name: CI | ||||
name: Check and build | ||||
|
||||
on: | ||||
push: | ||||
tags: | ||||
- '*' | ||||
pull_request: | ||||
workflow_dispatch: | ||||
workflow_call: | ||||
|
||||
jobs: | ||||
build: | ||||
name: Build | ||||
runs-on: ubuntu-latest | ||||
steps: | ||||
- name: Checkout | ||||
|
@@ -20,14 +16,11 @@ jobs: | |||
java-version: '21' | ||||
distribution: 'temurin' | ||||
|
||||
- name: Gradle Wrapper Validation | ||||
uses: gradle/actions/wrapper-validation@v4 | ||||
|
||||
- name: Copy CI gradle.properties | ||||
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties | ||||
|
||||
- name: Gradle Build Action | ||||
uses: gradle/gradle-build-action@v3 | ||||
uses: gradle/actions/setup-gradle@v4 | ||||
with: | ||||
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }} | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||
|
||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# When a tag is created, create a release build and upload it to Google Play | ||
|
||
name: Deploy release to Google Play | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: ./.github/workflows/check-and-build.yml | ||
|
||
- name: Build Blue aab | ||
run: ./gradlew app:bundleBlueRelease | ||
|
||
- uses: r0adkll/sign-android-release@f30bdd30588842ac76044ecdbd4b6d0e3e813478 | ||
name: Sign Tusky Blue aab | ||
id: sign_aab | ||
with: | ||
releaseDirectory: app/build/outputs/bundle/blueRelease | ||
signingKeyBase64: ${{ secrets.KEYSTORE }} | ||
alias: ${{ secrets.KEY_ALIAS }} | ||
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }} | ||
keyPassword: ${{ secrets.KEY_PASSWORD }} | ||
Comment on lines
+19
to
+27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd prefer it if we don't touch the build.gradle files There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll address that in a separated PR. |
||
|
||
- name: Generate whatsnew | ||
id: generate-whatsnew | ||
run: | | ||
mkdir whatsnew | ||
cp $(find fastlane/metadata/android/en-US/changelogs | sort -n -k6 -t/ | tail -n 1) whatsnew/whatsnew-en-US | ||
|
||
- name: Upload AAB to Google Play | ||
id: upload-release-asset-aab | ||
uses: r0adkll/[email protected] | ||
with: | ||
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} | ||
packageName: com.keylesspalace.tusky | ||
releaseFiles: ${{steps.sign_aab.outputs.signedReleaseFile}} | ||
track: internal | ||
whatsNewDirectory: whatsnew | ||
status: completed | ||
mappingFile: app/build/outputs/mapping/blueGoogleRelease/mapping.txt |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Deploy Tusky Nightly on each push to develop | ||
|
||
name: Deploy Tusky Nightly to Google Play | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: ./.github/workflows/check-and-build.yml | ||
|
||
- name: Build Green aab | ||
run: ./gradlew app:bundleGreenRelease | ||
|
||
- uses: r0adkll/sign-android-release@f30bdd30588842ac76044ecdbd4b6d0e3e813478 | ||
name: Sign Tusky Green aab | ||
id: sign_aab | ||
with: | ||
releaseDirectory: app/build/outputs/bundle/greenRelease | ||
signingKeyBase64: ${{ secrets.KEYSTORE }} | ||
alias: ${{ secrets.KEY_ALIAS }} | ||
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }} | ||
keyPassword: ${{ secrets.KEY_PASSWORD }} | ||
|
||
- name: Generate whatsnew | ||
id: generate-whatsnew | ||
run: | | ||
mkdir whatsnew | ||
git log -3 --pretty=%B | head -c 500 > whatsnew/whatsnew-en-US | ||
|
||
- name: Upload AAB to Google Play | ||
id: upload-release-asset-aab | ||
uses: r0adkll/[email protected] | ||
with: | ||
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} | ||
packageName: com.keylesspalace.tusky.test | ||
releaseFiles: ${{steps.sign_aab.outputs.signedReleaseFile}} | ||
track: production | ||
whatsNewDirectory: whatsnew | ||
status: completed | ||
mappingFile: app/build/outputs/mapping/blueGoogleRelease/mapping.txt |
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? The action already that runs on develop already includes this action, this would run it twice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean
.github/workflows/populate-gradle-build-cache.yml
? It has been deleted in this PR.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I meant the
deploy-test
hasuses: ./.github/workflows/check-and-build.yml
and runs on develop, but it actually doesn't 😅I'll fix that, thanks