添加「通知中心」微信小程序订阅方式 #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |