-
Notifications
You must be signed in to change notification settings - Fork 10
46 lines (40 loc) · 1.23 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
name: Build
on:
push:
branches:
- 'master'
- 'v*.*.*'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Decode Keystore
run: |
echo "${{ secrets.ANDROID_KEYSTORE }}" | base64 -d > pixelpilot.jks
- name: Build APK
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
run: |
./gradlew assembleRelease -Pandroid.injected.signing.store.file=pixelpilot.jks \
-Pandroid.injected.signing.store.password=$KEYSTORE_PASSWORD \
-Pandroid.injected.signing.key.alias=pixelpilot \
-Pandroid.injected.signing.key.password=$KEYSTORE_PASSWORD
mv app/build/outputs/apk/release/app-release.apk PixelPilot.apk
- name: Upload Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name == 'master' ? 'latest' : github.ref_name }}
files: PixelPilot.apk