Deploy a Beta Release #7
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: Use GitVersion Version | ||
run: | | ||
echo "build_version=$BUILD_VERSION" >> "$GITHUB_ENV" | ||
if: ${{ github.event.inputs.version == '' }} | ||
env: | ||
BUILD_VERSION: ${{ steps.gitversion.outputs.semVer }} | ||
- name: Use Manual Version | ||
run: | | ||
echo "build_version=$BUILD_VERSION" >> "$GITHUB_ENV" | ||
if: ${{ github.event.inputs.version != '' }} | ||
env: | ||
BUILD_VERSION: ${{ github.event.inputs.version }} | ||
- name: Download workflow artifact | ||
uses: dawidd6/action-download-artifact@v2.28.0 | ||
with: | ||
workflow: build.yml | ||
branch: ${{ github.ref_name }} | ||
name: bundle-${{ build_version }} | ||
Check failure on line 53 in .github/workflows/deploy-beta.yml GitHub Actions / Draft a Beta ReleaseInvalid workflow file
|
||
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 | ||
releaseFile: app.rosy_crow-Signed.aab | ||
releaseName: ${{ build_version }} | ||
track: beta | ||
mappingFile: mappings.txt | ||
status: draft | ||