File tree Expand file tree Collapse file tree 4 files changed +41
-22
lines changed
Expand file tree Collapse file tree 4 files changed +41
-22
lines changed Original file line number Diff line number Diff line change 1313 build :
1414 name : Build, Sign & Upload
1515 runs-on : ubuntu-latest
16- env :
17- KEY_STORE_FILE : ${{ secrets.SIGNINGKEY_BASE64 }} # optional if using a file from env
18- KEY_STORE_PASSWORD : ${{ secrets.KEY_STORE_PASSWORD }}
19- KEY_ALIAS : ${{ secrets.KEY_ALIAS }}
20- KEY_PASSWORD : ${{ secrets.KEY_PASSWORD }}
21-
2216 steps :
2317 - name : Checkout project
24183933 - name : Stop Gradle daemons
4034 run : ./gradlew --stop
4135
36+ - name : Decode keystore
37+ id : write_base64_file
38+ 39+ with :
40+ destinationFileName : ' mLauncher.jks'
41+ destinationPath : ' app'
42+ encodedString : ${{ secrets.SIGNINGKEY_BASE64 }}
43+
4244 - name : Build with Gradle
4345 run : ./gradlew clean assembleProdDebug --refresh-dependencies --no-daemon
4446 env :
45- JAVA_TOOL_OPTIONS : " -Dhttps.protocols=TLSv1.2"
47+ JAVA_TOOL_OPTIONS : " -Dhttps.protocols=TLSv1.2"
48+ KEY_STORE_FILE : ${{ steps.write_base64_file.outputs.filePath }}
49+ KEY_STORE_PASSWORD : ${{ secrets.KEY_STORE_PASSWORD }}
50+ KEY_ALIAS : ${{ secrets.KEY_ALIAS }}
51+ KEY_PASSWORD : ${{ secrets.KEY_PASSWORD }}
52+
Original file line number Diff line number Diff line change 1111 build :
1212 name : Build, Sign & Upload
1313 runs-on : ubuntu-latest
14- env :
15- KEY_STORE_FILE : ${{ secrets.SIGNINGKEY_BASE64 }} # optional if using a file from env
16- KEY_STORE_PASSWORD : ${{ secrets.KEY_STORE_PASSWORD }}
17- KEY_ALIAS : ${{ secrets.KEY_ALIAS }}
18- KEY_PASSWORD : ${{ secrets.KEY_PASSWORD }}
19-
2014 steps :
2115 - name : Checkout project
22163731 - name : Stop Gradle daemons
3832 run : ./gradlew --stop
3933
34+ - name : Decode keystore
35+ id : write_base64_file
36+ 37+ with :
38+ destinationFileName : ' mLauncher.jks'
39+ destinationPath : ' app'
40+ encodedString : ${{ secrets.SIGNINGKEY_BASE64 }}
41+
4042 - name : Build with Gradle
4143 run : ./gradlew clean assembleProdDebug --refresh-dependencies --no-daemon
4244 env :
43- JAVA_TOOL_OPTIONS : " -Dhttps.protocols=TLSv1.2"
45+ JAVA_TOOL_OPTIONS : " -Dhttps.protocols=TLSv1.2"
46+ KEY_STORE_FILE : ${{ steps.write_base64_file.outputs.filePath }}
47+ KEY_STORE_PASSWORD : ${{ secrets.KEY_STORE_PASSWORD }}
48+ KEY_ALIAS : ${{ secrets.KEY_ALIAS }}
49+ KEY_PASSWORD : ${{ secrets.KEY_PASSWORD }}
50+
Original file line number Diff line number Diff line change 1111 name : Build, Sign & Release
1212 if : " !startsWith(github.ref_name, 'nightly')"
1313 runs-on : ubuntu-latest
14- env :
15- KEY_STORE_FILE : ${{ secrets.SIGNINGKEY_BASE64 }} # optional if using a file from env
16- KEY_STORE_PASSWORD : ${{ secrets.KEY_STORE_PASSWORD }}
17- KEY_ALIAS : ${{ secrets.KEY_ALIAS }}
18- KEY_PASSWORD : ${{ secrets.KEY_PASSWORD }}
19-
2014 steps :
2115 - name : Checkout project
2216@@ -37,10 +31,22 @@ jobs:
3731 - name : Stop Gradle daemons
3832 run : ./gradlew --stop
3933
34+ - name : Decode keystore
35+ id : write_base64_file
36+ 37+ with :
38+ destinationFileName : ' mLauncher.jks'
39+ destinationPath : ' app'
40+ encodedString : ${{ secrets.SIGNINGKEY_BASE64 }}
41+
4042 - name : Build
4143 run : ./gradlew clean assembleProdRelease --refresh-dependencies --no-daemon && ./gradlew clean bundleProdRelease --refresh-dependencies --no-daemon
4244 env :
4345 JAVA_TOOL_OPTIONS : " -Dhttps.protocols=TLSv1.2"
46+ KEY_STORE_FILE : ${{ steps.write_base64_file.outputs.filePath }}
47+ KEY_STORE_PASSWORD : ${{ secrets.KEYSTORE_PASSWORD }}
48+ KEY_ALIAS : ${{ secrets.KEY_ALIAS }}
49+ KEY_PASSWORD : ${{ secrets.KEY_PASSWORD }}
4450
4551 - name : Release to GitHub
4652
Original file line number Diff line number Diff line change 6161 KEY_STORE_PASSWORD : ${{ secrets.KEY_STORE_PASSWORD }}
6262 KEY_ALIAS : ${{ secrets.KEY_ALIAS }}
6363 KEY_PASSWORD : ${{ secrets.KEY_PASSWORD }}
64-
6564
6665 - name : Extract Version
6766 id : extract_version
7978 - name : Rename files
8079 run : |
8180 mkdir -p ./build/release/
82- mv app/build/outputs/apk/nightlyRelease /*.apk ./build/release/mLauncher-Nightly-Signed.apk
81+ mv app/build/outputs/apk/nightly/release /*.apk ./build/release/mLauncher-Nightly-Signed.apk
8382 shell : bash
8483
8584 - name : Create and Upload Release
You can’t perform that action at this time.
0 commit comments