-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (34 loc) · 1.08 KB
/
build_APK.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build APK
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-apk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17'
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.27.1'
- name: Configure build
run: flutter clean && flutter pub get
- name: Build APK
env:
KEY_JKS: ${{ secrets.KEY_JKS }}
KEY_PASSWORD: ${{ secrets.ALIAS_PASSWORD }}
ALIAS_PASSWORD: ${{ secrets.KEY_PASSWORD }}
run: base64 -d <<< $KEY_JKS > ./android/app/release-key.jks && flutter build apk --release -v
- name: Rename APK
run: mv ./build/app/outputs/flutter-apk/app-release.apk IronFlow.apk
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: IronFlow
path: IronFlow.apk
if-no-files-found: error