Skip to content

Commit 19077ee

Browse files
Update android-pr_ci.yml
Signed-off-by: CreativeCodeCat <[email protected]>
1 parent b9051e3 commit 19077ee

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/android-pr_ci.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ jobs:
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
2216
uses: actions/[email protected]
@@ -37,7 +31,20 @@ jobs:
3731
- name: Stop Gradle daemons
3832
run: ./gradlew --stop
3933

34+
- name: Decode keystore
35+
id: write_base64_file
36+
uses: Swisyn/[email protected]
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+

0 commit comments

Comments
 (0)