forked from ballaswag/guppyscreen
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (55 loc) · 1.5 KB
/
guppydroid.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
55
56
57
58
59
60
61
62
63
64
65
66
name: guppydroid build
on:
push:
branches: [ "develop", "main", "android" ]
tags:
- "*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
ref: android
- uses: actions/checkout@v3
with:
ref: main
submodules: true
path: ./app/src/main/cpp/guppyscreen
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Setup signing
env:
ENCODED_KS: ${{ secrets.KEYSTORE }}
run: |
echo $ENCODED_KS > ks.txt
base64 -d ks.txt > ks.jks
- name: Build APK
env:
KEYSTORE: ../ks.jks
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
run: ./gradlew assembleRelease
- name: nightly release
uses: softprops/action-gh-release@v2
with:
prerelease: true
name: nightly
tag_name: nightly
files: app/build/outputs/apk/release/app-release.apk
fail_on_unmatched_files: true
- name: stable release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: app/build/outputs/apk/release/app-release.apk
generate_release_notes: true
fail_on_unmatched_files: true