From 334f9cf8a27121f19ddbecfdc73d202ef85171f1 Mon Sep 17 00:00:00 2001 From: 10bits Date: Sun, 2 Aug 2020 06:45:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E5=B0=BE=E5=B7=A5=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/legado.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/legado.yml b/.github/workflows/legado.yml index 22d7f9bb1..19de5a1da 100644 --- a/.github/workflows/legado.yml +++ b/.github/workflows/legado.yml @@ -24,18 +24,24 @@ jobs: java-version: 1.8 - name: clear 18PlusList.txt run: | + echo "清空18PlusList.txt" echo "">$GITHUB_WORKSPACE/app/src/main/assets/18PlusList.txt - name: release apk sign run: | + echo "给apk增加签名" cp $GITHUB_WORKSPACE/.github/workflows/legado.jks $GITHUB_WORKSPACE/app/legado.jks sed '$a\RELEASE_STORE_FILE=./legado.jks' $GITHUB_WORKSPACE/gradle.properties -i sed '$a\RELEASE_KEY_ALIAS=legado' $GITHUB_WORKSPACE/gradle.properties -i sed '$a\RELEASE_STORE_PASSWORD=gedoor_legado' $GITHUB_WORKSPACE/gradle.properties -i sed '$a\RELEASE_KEY_PASSWORD=gedoor_legado' $GITHUB_WORKSPACE/gradle.properties -i - sed "s/'.release'/'.releaseA'/" $GITHUB_WORKSPACE/app/build.gradle -i - sed 's/.release/.releaseA/' $GITHUB_WORKSPACE/app/google-services.json -i + - name: apk live together + run: | + echo "设置apk共存" + sed "s/'.release'/'.releaseA'/" $GITHUB_WORKSPACE/app/build.gradle -i + sed 's/.release/.releaseA/' $GITHUB_WORKSPACE/app/google-services.json -i - name: build with gradle run: | + echo "开始进行release构建" chmod +x gradlew ./gradlew aR - name : upload apk