Skip to content

update version

update version #7

Workflow file for this run

name: Android Release
# 1
on:
# 2
push:
tags:
- 'v*.*.*'
# 3
workflow_dispatch:
# 4
jobs:
# 5
build:
# 6
runs-on: ubuntu-latest
# 7
steps:
# 8
- uses: actions/checkout@v3
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Test
run: |
echo $RELEASE_VERSION
echo ${{ env.RELEASE_VERSION }}
# 9
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: "12.x"
# 10
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.5'
channel: 'stable'
- run: flutter --version
# 12
- name: Get dependencies
run: flutter pub get
- name: Start build apk
run: flutter build apk --no-tree-shake-icons
# Runs a set of commands using the runners shell
- name: Start release build
run: flutter build appbundle --no-tree-shake-icons
# Upload generated apk to the release.
- name: Push to Releases
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/release/*"
tag: {{ env.RELEASE_VERSION }}

Check failure on line 56 in .github/workflows/android-release.yml

View workflow run for this annotation

GitHub Actions / Android Release

Invalid workflow file

The workflow is not valid. .github/workflows/android-release.yml (Line: 56, Col: 16): A mapping was not expected
token: ${{ secrets.TOKEN }}