-
-
Notifications
You must be signed in to change notification settings - Fork 103
51 lines (44 loc) · 1.22 KB
/
branch_apk.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
name: Signed APKs
on:
push:
branches:
- table-layout
jobs:
signed_apk:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: perform the checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
fetch-depth: 0
# Verify the SHA-sum
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: prepare for build
shell: bash
run: ./prepare_for_build.sh
env:
SERVICEACCOUNTJSON: ${{ secrets.SERVICEACCOUNTJSON }}
KEYSTOREPASSWORD: ${{ secrets.KEYSTOREPASSWORD }}
KEYSTORE: ${{ secrets.KEYSTORE }}
KEYPASSWORD: ${{ secrets.KEYPASSWORD }}
KEYALIAS: ${{ secrets.KEYALIAS }}
- name: gradle build
uses: gradle/gradle-build-action@v2
with:
arguments: assemble
- name: upload the generated files
uses: actions/upload-artifact@v3
if: always()
with:
retention-days: 7
name: artifacts
path: app/build/outputs/apk