-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.0.14 - Add release workflow (#14)
- Loading branch information
Showing
2 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Release Android ARM64 | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-and-release: | ||
name: Build and Release Android ARM64 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install and set up Java | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17.x' | ||
|
||
- 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 |
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