-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.52 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
name: build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: generate files from secret
working-directory: android
run: |
echo "${{ secrets.BOORU_POCKET_KEY }}" | base64 --decode > app/keystore.jks
echo "storeFile=keystore.jks" >> key.properties
echo "keyAlias=${{ secrets.KEYSTORE_KEY_ALIAS }}" >> key.properties
echo "storePassword=${{ secrets.KEYSTORE_STORE_PASSWORD }}" >> key.properties
echo "keyPassword=${{ secrets.KEYSTORE_KEY_PASSWORD }}" >> key.properties
- uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: "3.19.3"
cache: true
- run: flutter pub get
- run: flutter build appbundle --dart-define=SENTRY_DSN=${{ secrets.SENTRY_DSN }} --dart-define=DANBOORU_URL=${{ secrets.DANBOORU_URL }} --dart-define=STAGE=${{ secrets.STAGE }}
- name: Convert aab to apk
id: convert_aab
uses: mukeshsolanki/[email protected]
with:
aabFile: build/app/outputs/bundle/release/app-release.aab
base64Keystore: ${{ secrets.BOORU_POCKET_KEY }}
keystorePassword: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
keystoreAlias: ${{ secrets.KEYSTORE_KEY_ALIAS }}
keyPassword: ${{ secrets.KEYSTORE_STORE_PASSWORD }}
- uses: actions/upload-artifact@v3
with:
name: release-apk
path: ${{ steps.convert_aab.outputs.apkPath }}