refactor: 优化时间段显示 #97
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 构建 | |
on: | |
push: | |
branches: [main, dev] | |
paths-ignore: | |
- "**.md" | |
- "docs/**" | |
- "package.json" | |
- "yarn.lock" | |
- ".gitignore" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: 设置 JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: "17" | |
distribution: "temurin" | |
cache: gradle | |
- name: 构建并签名 | |
env: | |
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | |
KEY_ALIAS: ${{ vars.KEY_ALIAS }} | |
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
run: chmod +x gradlew && ./gradlew assembleRelease | |
- name: 上传 APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: APK | |
path: composeApp/build/outputs/apk/release | |
- name: 发送 APK 到企业微信 | |
uses: MeanZhang/[email protected] | |
with: | |
key: ${{ secrets.WEWORK_BOT_KEY }} | |
msgtype: "file" | |
content: composeApp/build/outputs/apk/release/*.apk |