-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (40 loc) · 1.22 KB
/
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
42
43
name: Build AnimeGo APK for release
on: workflow_dispatch
# Manual input if needed
# inputs:
# version:
# description: 'Application version'
# required: true
# default: '1.0'
# build apk using Flutter
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Decode Keystore
id: decode_keystore
uses: timheuer/[email protected]
with:
fileName: 'android_keystore.jks'
fileDir: '/home/runner/work/<<project name>>/<<project name>>/project/android/app/keystore/'
encodedString: ${{ secrets.KEYSTORE }}
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.0'
channel: 'stable'
- name: Get dependencies
run: cd project && flutter pub get
- name: Build APK
run: cd project && flutter build apk
- name: Move APK to root folder
run: mv project/android/app/release/app-release.apk app-release.apk
- name: Make a draft release
uses: softprops/action-gh-release@v1
with:
draft: true
files: app-release.apk