Skip to content

Commit d811140

Browse files
committed
ci: Fix keystore password special character handling
1 parent 524b9b7 commit d811140

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,14 @@ jobs:
7979
run: echo "${{ secrets.KEY_STORE_BASE64 }}" | base64 --decode > android/app/keystore.jks
8080

8181
- name: Create key.properties
82+
env:
83+
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
84+
KEY_STORE_ALIAS: ${{ secrets.KEY_STORE_ALIAS }}
8285
run: |
83-
cat > android/key.properties << EOF
84-
storePassword=${{ secrets.KEY_STORE_PASSWORD }}
85-
keyPassword=${{ secrets.KEY_STORE_PASSWORD }}
86-
keyAlias=${{ secrets.KEY_STORE_ALIAS }}
87-
storeFile=keystore.jks
88-
EOF
86+
printf 'storePassword=%s\n' "$KEY_STORE_PASSWORD" > android/key.properties
87+
printf 'keyPassword=%s\n' "$KEY_STORE_PASSWORD" >> android/key.properties
88+
printf 'keyAlias=%s\n' "$KEY_STORE_ALIAS" >> android/key.properties
89+
printf 'storeFile=keystore.jks\n' >> android/key.properties
8990
9091
- name: Build App Bundle
9192
run: flutter build appbundle --release

0 commit comments

Comments
 (0)