-
Notifications
You must be signed in to change notification settings - Fork 51
56 lines (54 loc) · 1.56 KB
/
check.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
name: Check
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Debug with Gradle
run: ./gradlew assembleDebug --stacktrace
- name: Build Release with Gradle
run: ./gradlew assembleRelease --stacktrace
- name: Sign APK
uses: r0adkll/sign-android-release@v1
id: sign_app
with:
releaseDirectory: archive/app/
signingKeyBase64: ${{ secrets.KEYSTORE_JKS_BASE64 }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
alias: ${{ secrets.SIGNING_KEY_ALIAS }}
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
- name: Rename Signed APKs
run: |
for FILE in archive/app/*unsigned-signed.apk
do
mv "${FILE}" "${FILE/unsigned-signed/signed}"
done
- name: Upload
uses: actions/[email protected]
with:
name: Build Artifacts
path: |
archive/app/*-signed.apk
archive/app/*-mapping.txt
- name: Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: "latest"
prerelease: true
files: |
archive/app/*-signed.apk
archive/app/*-mapping.txt