chore: github actions

This commit is contained in:
zhoubinjia committed 2026-03-12 16:43:28 +08:00
1 parent a27b0b5d6d
commit 1a4b4a64e7
2 files changed
+48

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
name: Android Release Build
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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: Decode Keystore
run: echo "${{ secrets.RELEASE_KEYSTORE }}" | base64 --decode > app/release.keystore
- name: Build China Release APK
run: |
./gradlew assembleChinaRelease \
-PRELEASE_STORE_FILE=release.keystore \
-PRELEASE_STORE_PASSWORD=${{ secrets.RELEASE_STORE_PASSWORD }} \
-PRELEASE_KEY_ALIAS=${{ secrets.RELEASE_KEY_ALIAS }} \
-PRELEASE_KEY_PASSWORD=${{ secrets.RELEASE_KEY_PASSWORD }}
- name: Upload China Release APK
uses: actions/upload-artifact@v4
with:
name: china-release-apk
path: app/build/outputs/apk/china/release/*.apk