Skip to content

Deploy a Beta Release #7

Deploy a Beta Release

Deploy a Beta Release #7

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Draft a Beta Release

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-beta.yml (Line: 53, Col: 15): Unrecognized named-value: 'build_version'. Located at position 1 within expression: build_version .github/workflows/deploy-beta.yml (Line: 61, Col: 22): Unrecognized named-value: 'build_version'. Located at position 1 within expression: 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
releaseFile: app.rosy_crow-Signed.aab
releaseName: ${{ build_version }}
track: beta
mappingFile: mappings.txt
status: draft