forked from Pixel-Tailor-CN/TensorIMS
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (39 loc) · 1.14 KB
/
Copy pathandroid_master.yml
File metadata and controls
39 lines (39 loc) · 1.14 KB
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
name: Android Master CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip')"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Decode Keystore
env:
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
run: |
echo "$KEYSTORE_BASE64" | base64 --decode > /tmp/key.jks
- name: Build with Gradle
env:
SIGN_KEY_STORE_FILE: "/tmp/key.jks"
SIGN_KEY_STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
SIGN_KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
SIGN_KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
run: |
./gradlew assembleDebug
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: TurboIMS-CI
path: app/build/outputs/apk/debug/app-debug.apk