Skip to content

Commit

Permalink
v1.0.14 - Add release workflow (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Donnie committed Jan 14, 2024
1 parent 1582aef commit 287b19c
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
54 changes: 54 additions & 0 deletions .github/workflows/android_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
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 }}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies:
xml: 6.5.0

dev_dependencies:
flutter_lints: ^3.0.1
flutter_lints: 3.0.1

flutter:
uses-material-design: true

0 comments on commit 287b19c

Please sign in to comment.