-
Notifications
You must be signed in to change notification settings - Fork 3
Add GitHub Action to publish releases to Play Store Internal Test track #192
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
651983f
Initial plan
Copilot 8629f41
Add GitHub Actions workflow for Play Store Internal Track deployment
Copilot 4ee7ff1
Add TODO comment for package name in Play Store workflow
Copilot b5cf0b3
Improve README wording for Play Store deployment section
Copilot f5b2d7c
Add explicit permissions block to Play Store workflow for security
Copilot 7d57bf3
Update workflow to trigger on release/* branch pattern
Copilot 70a6b96
FIX trigger internal test track on release/** and PR branch
ninovanhooff ee2733d
Fix typos and update documentation per review feedback
Copilot 3cc42e5
Add reminder to update packageName in setup instructions
Copilot 98b0b15
Remove test branch from workflow triggers
Copilot a2b1437
Merge branch 'develop' into copilot/add-github-action-playstore
ninovanhooff bf69558
ADD run renamer on yml files (Github actions)
ninovanhooff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| name: Publish to Play Store Internal Track | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: [ 'release/**' ] | ||
|
|
||
| # Cancel any in-progress runs of this workflow if a new run is triggered within the same branch or PR | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: macos-latest # use [ self-hosted, macOS ] to host on our own mac mini, which is twice as fast and cheaper than hosting on a github runner. See README for more info. | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Prepare Release | ||
| uses: ./.github/actions/prepare-release | ||
|
|
||
| # This will decode the keystore from base 64 text representation that we have stored in secrets | ||
| # and generates a keystore file and gets stored in /android-app path | ||
| - name: Decode Keystore | ||
| env: | ||
| ENCODED_STRING: ${{ secrets.KEYSTORE_BASE_64 }} | ||
| shell: bash | ||
| run: | | ||
| echo $ENCODED_STRING > keystore-b64.txt | ||
| base64 -d <keystore-b64.txt >upload-keystore.jks | ||
| # The secrets.gradle file that is stored as text, does not need to be decoded | ||
| # and can be directly written to a file | ||
| # This file is used by the gradle build to sign the AAB | ||
| - name: Create secrets.gradle | ||
| run: echo "${{ secrets.SECRETS_GRADLE }}" > secrets.gradle | ||
|
|
||
| - name: Build Prod Release Bundle | ||
| run: ./gradlew bundleProdRelease --stacktrace | ||
|
|
||
| - name: Upload Release Bundle to Artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ github.event.repository.name }}-${{ github.run_number }}-prod-release-bundle | ||
| path: | | ||
| ${{ github.workspace }}/app/build/outputs/bundle/prodRelease/app-prod-release.aab | ||
|
|
||
| - name: Upload to Play Store Internal Track | ||
| uses: r0adkll/upload-google-play@v1 | ||
| with: | ||
| serviceAccountJsonPlainText: ${{ secrets.PLAYSTORE_SERVICE_ACCOUNT_JSON }} | ||
| packageName: nl.q42.template | ||
| releaseFiles: ${{ github.workspace }}/app/build/outputs/bundle/prodRelease/app-prod-release.aab | ||
| track: internal | ||
| status: completed | ||
| inAppUpdatePriority: 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.