Skip to content

test github action

test github action #4

Workflow file for this run

name: Flutter CI
on:
push:
branches: ["master"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v1
with:
java-version: '11.x'
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
# flutter-version: 3.19.0

Check failure on line 21 in .github/workflows/flutter-ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/flutter-ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 21
- name: Build apks
run: |
flutter pub get
flutter build apk --release
# flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi --release --tree-shake-icons
mkdir -p releases
mv -f build/app/outputs/flutter-apk/*-release.apk releases
mv -f releases/app-release.apk releases/app-universal-release.apk
- name: Release to github
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "releases/*-release.apk"
# token: ${{ secrets.ACTION_TOKEN }}
# tag: ${{ github.event.inputs.TAG }}
tag: 1.0