Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
Automate Play beta publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbanes committed Feb 13, 2022
1 parent 43e7b98 commit cb7ff37
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ jobs:
app:lintQaDebug
testDebug
- name: Create release for tags
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
generate_release_notes: true
files: |
app/build/outputs/apk/standard/release/app-standard-release.apk
- name: Publish QA build to internal track
if: github.ref == 'refs/heads/main'
# Pinned version due to https://github.com/r0adkll/upload-google-play/issues/80
Expand All @@ -78,13 +86,30 @@ jobs:
releaseFiles: app/build/outputs/bundle/standardRelease/app-standard-release.aab
mappingFile: app/build/outputs/mapping/standardRelease/mapping.txt

- name: Create release for tags
uses: softprops/action-gh-release@v1
- name: Build Changelog for beta release
id: build_changelog
if: startsWith(github.ref, 'refs/tags/v')
uses: mikepenz/release-changelog-builder-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Writing changelog for beta release
if: steps.build_changelog.outcome == 'success'
run: |
mkdir playwhatsnew
echo "${{ steps.build_changelog.outputs.changelog }}" > playwhatsnew/whatsnew-en-US
- name: Publish tagged release to beta track
if: startsWith(github.ref, 'refs/tags/v')
# Pinned version due to https://github.com/r0adkll/upload-google-play/issues/80
uses: r0adkll/[email protected]
with:
generate_release_notes: true
files: |
app/build/outputs/apk/standard/release/app-standard-release.apk
serviceAccountJson: release/play-account.json
packageName: app.tivi
track: beta
whatsNewDirectory: playwhatsnew
releaseFiles: app/build/outputs/bundle/standardRelease/app-standard-release.aab
mappingFile: app/build/outputs/mapping/standardRelease/mapping.txt

- name: Clean secrets
if: always()
Expand Down

0 comments on commit cb7ff37

Please sign in to comment.