Skip to content

apk打包结果显示优化 #78

apk打包结果显示优化

apk打包结果显示优化 #78

Workflow file for this run

name: APK 打包
on: [workflow_dispatch,push]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: 替换青龙密钥
run: |
sed -i -e 's#REPLACE_QL_URL#${{secrets.QL_URL}}#g' app/src/main/java/cn/moon/ql/Config.java
sed -i -e 's#REPLACE_QL_CLIENT_ID#${{secrets.QL_CLIENT_ID}}#g' app/src/main/java/cn/moon/ql/Config.java
sed -i -e 's#REPLACE_QL_CLIENT_SECRET#${{secrets.QL_CLIENT_SECRET}}#g' app/src/main/java/cn/moon/ql/Config.java
cat app/src/main/java/cn/moon/ql/Config.java
- name: 设置Java环境
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: 使用gradlew 打包apk
run: |
chmod +x gradlew
./gradlew build
cd app/build/outputs/apk/release && mv *.apk qinglong-jd-$(date '+%Y%m%d%H%M%S').apk
- name: 签名 apk
id: sign_app
uses: upup-company/apksigner-android@v1
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: "MIIJwAIBAzCCCWoGCSqGSIb3DQEHAaCCCVsEgglXMIIJUzCCBaoGCSqGSIb3DQEH
AaCCBZsEggWXMIIFkzCCBY8GCyqGSIb3DQEMCgECoIIFQDCCBTwwZgYJKoZIhvcN
AQUNMFkwOAYJKoZIhvcNAQUMMCsEFKlI3rH07T3J6aNCnD9OXob6XwkqAgInEAIB
IDAMBggqhkiG9w0CCQUAMB0GCWCGSAFlAwQBKgQQJx5dI5cVbyqUixQWFuQ/nwSC
BNCJVpXEMv56WhhZ+LxtqE5rCFrPDqXzliYoGsuP5TX+SMTX1M6mli/ZlOhr22Nr
TqxonT2Z7/JcTWIZXMNExA2sLWVYjRgEQn6KH5YfCfPRy09PkEPdl5aq9F5IUZ9I
/0FeqkhAvMaYTAoMNTTHcszfdcx2MKuE3tQ8PLuNmZY/bD6jk69uBnNeYJ8Nnywk
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CMpTHV/LNalFlNVYcSrErXVIZxl+kbFPg4hlgEsSiQy2myrLT
mieuzLGb/FwkPtnvOVgfvwayj6ILpPsgpltz65XS1wv71ykjWFC27LdcxkuPwPy0
nsaMvvuLx2E8iLeTi3r0wpTMzuitqk9+5aWlgjClHVxbOTdx/7ooSDoExQyAbCnf
SShKPY4LaPp9YGBBcv4bzp7sKBgBrANjlqqzMVZKkqWEHL0JxRdGP5CxzHirSdy/
4jHefL9zn67meFhgGueXAL8iMUpL2gbqpN1zxbxVQEiHUZW2SvCZllt8y9qCSpuL
bwNej+ghfSX7mddrVklNHZntLMXB5Ls4SAAA6nJPTvLLLB2lySsfx11fp6evUQYq
r2LsHDH0ccc29RhtaaHR74xMEDFjzGPOa+zerblpBD95F+REAuZ4ZeJJ2NXcX/4b
P7eUCxeCKMGrD/Mbvxl7b8PNinkRbcOHWDJnakHhq8w8dhm9LqwWVPzx0f3F5VNG
dJq7cHstRzs5iNpgtFvIFJxvDx5Y6ZkJNg/stkfQXyP34dm+QTbxcy46owg39Bsd
X3pJ211PAxEBwf+s3PTbnL3oMXSybAh9ooPscC3Bz9hjOoM3PTFQfi2lxvXHst0E
q79ZKWMsxtbkBAjaiOqlptom8aTSME0wMTANBglghkgBZQMEAgEFAAQgrnCRLPUj
dweWd2xJoNFsA+H6hKI3GM7jGO7DBLOzH4AEFBcVg7/EKE1gzYLfZHSi75PQrRem
AgInEA=="
alias: key0
keyStorePassword: 123123
keyPassword: 123123
env:
BUILD_TOOLS_VERSION: "33.0.3"
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: v${{github.run_id}}
title: "apk打包结果 ${{secrets.QL_URL}}"
prerelease: false
files: |
${{steps.sign_app.outputs.signedReleaseFile}}