mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
Update main.yml
This commit is contained in:
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
@@ -9,16 +9,16 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 代码迁出
|
- name: 代码迁出
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: 构建Java环境
|
- name: 构建Java环境
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: "zulu"
|
distribution: "zulu"
|
||||||
java-version: "17"
|
java-version: "17"
|
||||||
|
|
||||||
- name: 检查缓存
|
- name: 检查缓存
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
id: cache-flutter
|
id: cache-flutter
|
||||||
with:
|
with:
|
||||||
path: /root/flutter-sdk # Flutter SDK 的路径
|
path: /root/flutter-sdk # Flutter SDK 的路径
|
||||||
@@ -34,11 +34,21 @@ jobs:
|
|||||||
- name: 下载项目依赖
|
- name: 下载项目依赖
|
||||||
run: flutter pub get
|
run: flutter pub get
|
||||||
|
|
||||||
|
- name: Write key
|
||||||
|
run: |
|
||||||
|
if [ ! -z "${{ secrets.SIGN_KEYSTORE_BASE64 }}" ]; then
|
||||||
|
echo "${{ secrets.SIGN_KEYSTORE_BASE64 }}" | base64 --decode > android/app/key.jks
|
||||||
|
echo storeFile='key.jks' >> android/key.properties
|
||||||
|
echo storePassword='${{ secrets.KEYSTORE_PASSWORD }}' >> android/key.properties
|
||||||
|
echo keyAlias='${{ secrets.KEY_ALIAS }}' >> android/key.properties
|
||||||
|
echo keyPassword='${{ secrets.KEY_PASSWORD }}' >> android/key.properties
|
||||||
|
fi
|
||||||
|
|
||||||
- name: flutter build apk
|
- name: flutter build apk
|
||||||
run: flutter build apk --release --target-platform=android-arm64
|
run: flutter build apk --release --target-platform=android-arm64
|
||||||
|
|
||||||
- name: 上传
|
- name: 上传
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Pilipala-Release
|
name: Pilipala-Release
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
Reference in New Issue
Block a user