-
-
Notifications
You must be signed in to change notification settings - Fork 8
54 lines (47 loc) · 1.6 KB
/
nightly.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
name: Nightly
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
- name: Assemble with Gradle
run: ./gradlew \
-PcommitCount=$(git rev-list --count master) \
-PcommitHash=$(git rev-parse --short master) \
-PstorePassword="${{ secrets.NIGHTLY_KEYSTORE_PASSWORD }}" \
-PkeyPassword="${{ secrets.NIGHTLY_KEYSTORE_PASSWORD }}" \
assembleNightlySigned
- name: Upload authenticator APK
uses: actions/upload-artifact@v4
with:
name: authenticator.apk
path: authenticator/build/outputs/apk/nightly/signed/authenticator-nightly-signed.apk
if-no-files-found: error
- name: Upload companion APK
uses: actions/upload-artifact@v4
with:
name: companion.apk
path: companion/build/outputs/apk/nightly/signed/companion-nightly-signed.apk
if-no-files-found: error
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
authenticator/build/outputs/apk/nightly/signed/authenticator-nightly-signed.apk
companion/build/outputs/apk/nightly/signed/companion-nightly-signed.apk
tag_name: nightly
release_name: Nightly Release
body: |
Nightly build for commit ${{ github.sha }}.
draft: false
prerelease: true