v1.0.14 - Add release workflow (#14) #11
Workflow file for this run
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: Release Android ARM64 | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
permissions: | |
contents: write | |
jobs: | |
build-and-release: | |
name: Build and Release Android ARM64 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install and set up Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '17.x' | |
cache: gradle | |
- name: Setup Flutter environment | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.16.5' | |
cache: true | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Build APK for android-arm64 | |
run: flutter build apk --target-platform android-arm64 | |
- name: Upload Release APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: finease | |
path: build/app/outputs/apk/release/app-release.apk | |
if-no-files-found: error | |
- name: Create release | |
id: create-release | |
uses: softprops/action-gh-release@v1 | |
with: | |
draft: false | |
fail_on_unmatched_files: true | |
files: | | |
build/app/outputs/apk/release/app-release.apk | |
generate_release_notes: true | |
prerelease: false | |
token: ${{ secrets.GITHUB_TOKEN }} |