Skip to content

Commit

Permalink
upload
Browse files Browse the repository at this point in the history
  • Loading branch information
xinpengfei520 committed May 5, 2024
1 parent f7f8b98 commit 0700b83
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,31 +48,7 @@ jobs:
gradle-version: 7.5
arguments: assembleRelease

# 签名apk
- uses: r0adkll/sign-android-release@v1
name: Sign app APK
id: sign_app
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
# 还能设置build-tools version,29.0.3好像不支持了
env:
# override default build-tools version (29.0.3) -- optional
BUILD_TOOLS_VERSION: "28.0.3"

# build-tools可能不存在,用step查看下支持哪些
- run: ls /usr/local/lib/android/sdk/build-tools/

# 重命名apk
# GITHUB_REF_NAME是“触发workflow的分支或tag名称”
- run: mv ${{steps.sign_app.outputs.signedReleaseFile}} iMoney_android_$GITHUB_REF_NAME.apk
# 可以指定shell命令的执行目录
# working-directory: ./temp
# 只当shell的类型
# shell: bash
- run: cd app/build/outputs/apk/release

# 发布
- uses: ncipollo/release-action@v1
Expand Down

0 comments on commit 0700b83

Please sign in to comment.