Skip to content

Commit 51486a3

Browse files
committed
actions: Fix build keystore
Signed-off-by: hamjin <jinham@qq.com>
1 parent 686ded2 commit 51486a3

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/build-pre-release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,13 @@ jobs:
5555
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
5656
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
5757
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
58+
SIGNING_KEYSTORE: ${{ secrets.SIGNING_KEYSTORE}}
5859
run: |
5960
touch signing.properties
6061
echo keystore.password="$SIGNING_STORE_PASSWORD" > signing.properties
6162
echo key.alias="$SIGNING_KEY_ALIAS" >> signing.properties
6263
echo key.password="$SIGNING_KEY_PASSWORD" >> signing.properties
64+
echo "$SIGNING_KEYSTORE" | base64 -d > release.keystore
6365
6466
echo "cat signing.properties"
6567
cat signing.properties

.github/workflows/build-release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,14 @@ jobs:
9494
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
9595
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
9696
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
97+
SIGNING_KEYSTORE: ${{ secrets.SIGNING_KEYSTORE}}
9798
run: |
9899
touch signing.properties
99100
echo keystore.password="$SIGNING_STORE_PASSWORD" > signing.properties
100101
echo key.alias="$SIGNING_KEY_ALIAS" >> signing.properties
101102
echo key.password="$SIGNING_KEY_PASSWORD" >> signing.properties
102-
103+
echo "$SIGNING_KEYSTORE" | base64 -d > release.keystore
104+
103105
echo "cat signing.properties"
104106
cat signing.properties
105107

0 commit comments

Comments
 (0)