Skip to content

Commit c9512df

Browse files
committed
ci: handle missing secrets in android build
1 parent e0b0d79 commit c9512df

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/android-play-store.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
${{ runner.OS }}-saber-
3939
4040
- name: Setup keystore
41+
env:
42+
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
43+
if: ${{ env.SIGNING_KEY != '' }}
4144
run: |
4245
echo "${{ secrets.SIGNING_KEY }}" | base64 -d > android/android.keystore
4346
echo "storePassword=${{ secrets.KEY_STORE_PASSWORD }}" > android/key.properties

.github/workflows/android.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
${{ runner.OS }}-saber-
4545
4646
- name: Setup keystore
47+
env:
48+
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
49+
if: ${{ env.SIGNING_KEY != '' }}
4750
run: |
4851
echo "${{ secrets.SIGNING_KEY }}" | base64 -d > android/android.keystore
4952
echo "storePassword=${{ secrets.KEY_STORE_PASSWORD }}" > android/key.properties

0 commit comments

Comments
 (0)