Skip to content

Commit e076a37

Browse files
authored
Update build.yml
1 parent d71ac68 commit e076a37

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,14 @@ jobs:
1919

2020
- name: Decode Permanent Keystore
2121
run: |
22-
echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 --decode > release.keystore
23-
22+
# Strips out the BEGIN/END headers, removes hidden Windows carriage returns (\r), and decodes
23+
sed -i '/---/d' release.keystore || true
24+
cat << 'EOF' > encoded_key.txt
25+
${{ secrets.KEYSTORE_BASE64 }}
26+
EOF
27+
sed -i '/---/d' encoded_key.txt
28+
tr -d '\r\n ' < encoded_key.txt | base64 --decode > release.keystore
29+
2430
- name: Zipalign and Sign Release APK (V2 Signature)
2531
run: |
2632
BUILD_TOOLS_DIR=$(ls -d $ANDROID_HOME/build-tools/* | tail -1)

0 commit comments

Comments
 (0)