-
Notifications
You must be signed in to change notification settings - Fork 6
57 lines (48 loc) · 1.59 KB
/
push_ci.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
57
name: Android CI
on:
push:
branches: [ "master" ]
paths-ignore:
- '**.md'
- '**.txt'
- '.github/**'
- '.idea/**'
- '!.github/workflows/**'
jobs:
build:
runs-on: ubuntu-latest
if: ${{ !startsWith(github.event.head_commit.message, '[skip ci]') }} && success() && github.ref == 'refs/heads/main' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: |
echo ${{ secrets.SIGN_KEYSTORE_BASE64 }} | base64 -d > keystore.jks
./gradlew build
env:
KEYSTORE_PATH: "../keystore.jks"
KEYSTORE_PASSWORD: ${{ secrets.SIGN_KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.SIGN_ALIAS }}
KEY_PASSWORD: ${{ secrets.SIGN_KEY_PASSWORD }}
- name: Upload release
uses: actions/upload-artifact@v4.3.1
with:
path: ${{github.workspace}}/app/build/outputs/apk/release/*.apk
name: QQVersionList-release-${{ github.event.head_commit.id }}
retention-days: 30
- name: Upload mappings
uses: actions/upload-artifact@v4.3.1
with:
path: ${{github.workspace}}/app/build/outputs/mapping/release/mapping.txt
name: QQVersionList-release-${{ github.event.head_commit.id }}-mapping
retention-days: 30