-
-
Notifications
You must be signed in to change notification settings - Fork 4
67 lines (56 loc) · 1.66 KB
/
build.yml
File metadata and controls
67 lines (56 loc) · 1.66 KB
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
66
67
name: Build
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: true
- name: Set up Android NDK
uses: nttld/setup-ndk@v1
with:
ndk-version: r29
- name: Build proot
run: |
thirdparty/proot/build.sh
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Build debug APK
run: |
./gradlew assembleDebug
- name: Decode keystore
if: github.ref == 'refs/heads/main'
run: |
echo "${{ secrets.KEYSTORE }}" | base64 -d > /tmp/release.keystore
- name: Build release APK and AAB
if: github.ref == 'refs/heads/main'
env:
GABE_RELEASE_KEYSTORE_FILE: /tmp/release.keystore
GABE_RELEASE_STORE_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
GABE_RELEASE_KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
GABE_RELEASE_KEY_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
run: |
./gradlew assembleRelease bundleRelease
- name: Upload debug artifacts
uses: actions/upload-artifact@v4
with:
name: debug-artifacts
path: |
app/build/outputs/apk/debug/
- name: Upload release artifacts
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: release-artifacts
path: |
app/build/outputs/apk/release/
app/build/outputs/bundle/release/