Deploy a Beta Release #10
This file contains 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
name: Draft a Beta Release | |
on: | |
workflow_run: | |
workflows: [ Build ] | |
types: | |
- completed | |
branches: [ beta ] | |
workflow_dispatch: | |
inputs: | |
version: | |
type: string | |
description: Version to deploy | |
permissions: | |
contents: read | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: Deploy to Beta (Google Play) | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.1 | |
with: | |
fetch-depth: 0 | |
- name: Install GitVersion | |
if: ${{ github.event.inputs.version == '' }} | |
uses: gittools/actions/gitversion/setup@v0.10.2 | |
with: | |
versionSpec: '5.x' | |
preferLatestVersion: true | |
- name: Determine Version | |
if: ${{ github.event.inputs.version == '' }} | |
id: gitversion | |
uses: gittools/actions/gitversion/execute@v0.10.2 | |
with: | |
useConfigFile: true | |
- name: Set Version | |
id: set_version | |
run: | | |
if [[ -n "$MANUAL_VERSION" ]]; then | |
echo "build_version=$MANUAL_VERSION" >> "$GITHUB_OUTPUT" | |
elif [[ -n "$AUTO_VERSION" ]]; then | |
echo "build_version=$AUTO_VERSION" >> "$GITHUB_OUTPUT" | |
fi | |
env: | |
MANUAL_VERSION: ${{ github.event.inputs.version }} | |
AUTO_VERSION: ${{ steps.gitversion.outputs.semVer }} | |
- name: Download workflow artifact | |
uses: dawidd6/action-download-artifact@v2.28.0 | |
with: | |
workflow: build.yml | |
branch: ${{ github.ref_name }} | |
name: bundle-${{ steps.set_version.outputs.build_version }} | |
allow_forks: false | |
- name: Submit a Beta Release | |
uses: r0adkll/upload-google-play@v1.0.19 | |
with: | |
serviceAccountJsonPlainText: ${{ secrets.SERVICES_ACCOUNT_JSON }} | |
packageName: app.rosy_crow | |
releaseFiles: app.rosy_crow-Signed.aab | |
releaseName: ${{ steps.set_version.outputs.build_version }} | |
track: beta | |
mappingFile: mappings.txt | |
status: draft | |