-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
SkyD666
committed
Jul 11, 2022
1 parent
7d444ca
commit dbd5322
Showing
2 changed files
with
53 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Pre Release | ||
|
||
# 触发器 | ||
on: | ||
workflow_dispatch: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
# 设置Jdk为11 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: 11 | ||
- name: Checkout Secret | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ${{ secrets.SECRET_REPO }} | ||
token: ${{ secrets.TOKEN }} # 连接仓库的token,需要单独配置 | ||
path: secret | ||
# 准备secret文件 | ||
- name: Copy Secret Files | ||
run: | | ||
cd secret/Imomoe | ||
cp key.jks ../.. | ||
cp secret.gradle ../.. | ||
cp notice.html ../../app/src/main/res/raw | ||
# 清理secret文件 | ||
- name: Clean Temp Secret Files | ||
run: | | ||
rm -rf ./secret | ||
# 打包 | ||
- name: Build with Gradle | ||
run: | | ||
bash ./gradlew assembleGithub | ||
# 存档打包的文件 | ||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: build | ||
path: app/build/outputs/apk/Github/release/*.apk |
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