-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.36 KB
/
build.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
44
45
46
47
48
49
50
51
52
53
54
name: Android build & upload
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
workflow_dispatch:
jobs:
build_apk:
permissions: write-all
name: Build Flutter (Android)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: temurin
java-package: jdk
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Get dependencies
run: flutter pub get
- name: Build Android App Bundle
run: flutter build apk --release --split-per-abi --info
- name: Sign app APK
id: sign_app
uses: ilharp/sign-android-release@nightly
with:
releaseDir: build/app/outputs/apk/release
signingKey: ${{ secrets.SIGNING_KEY }}
keyAlias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
- name: Upload APK
uses: ncipollo/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
name: Catsuka ${{ github.ref_name }}
tag: ${{ github.ref_name }}
artifacts: build/app/outputs/apk/release/*.apk
replacesArtifacts: true
allowUpdates: true