generated from KyuubiRan/EzXHepler-template
-
Notifications
You must be signed in to change notification settings - Fork 40
47 lines (38 loc) · 1.16 KB
/
android.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
name: Android CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: set up JDK 21
uses: actions/setup-java@main
with:
java-version: '21'
distribution: 'temurin'
- name: Build with Gradle
run: ./gradlew app:assembleRelease
- name: Rename signed apk
run: mv app/build/outputs/apk/release/app-release-unsigned.apk app/build/outputs/apk/release/ChromeXt.apk
- uses: noriban/sign-android-release@master
name: Sign app APK
id: sign_app
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
- name: Upload signed APK
uses: actions/upload-artifact@main
with:
name: ChromeXt.apk
path: ${{steps.sign_app.outputs.signedReleaseFile}}
- name: Collect signed APK
uses: actions/download-artifact@main
with:
name: ChromeXt.apk