-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (55 loc) · 2 KB
/
release.yaml
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
55
56
57
58
59
60
61
62
63
64
65
name: Build Release App Bundle
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Decode Keystore
env:
ENCODED_STRING: ${{ secrets.KEYSTORE }}
run: echo $ENCODED_STRING | base64 -di > key.jks
- name: Make gradlew executable
run: chmod +x ./gradlew
working-directory: src
- name: Build Release apk
env:
RELEASE_KEYSTORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
RELEASE_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
RELEASE_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
run: ./gradlew assembleRelease --stacktrace --no-daemon
working-directory: src
- name: Build Release bundle
env:
RELEASE_KEYSTORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
RELEASE_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
RELEASE_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
run: ./gradlew bundleRelease --stacktrace --no-daemon
working-directory: src
- name: Get release file aab path
id: releaseAab
run: echo "aabfile=$(find src/app/build/outputs/bundle/release/*.aab)" >> $GITHUB_OUTPUT
- name: Get release file apk path
id: releaseApk
run: echo "apkfile=$(find src/app/build/outputs/apk/release/*.apk)" >> $GITHUB_OUTPUT
- name: Upload release file aab
uses: actions/upload-artifact@v4
with:
name: release-bundle
path: ${{ steps.releaseAab.outputs.aabfile }}
- name: Upload release file apk
uses: actions/upload-artifact@v4
with:
name: release-apk
path: ${{ steps.releaseApk.outputs.apkfile }}