Skip to content

Commit 3f44e06

Browse files
committed
absolute paths
1 parent b3718d2 commit 3f44e06

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

.github/workflows/android.yml

+19-8
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ jobs:
3434

3535
- name: Decode Keystore
3636
run: |
37-
echo ${{ secrets.KEYSTORE_BASE64 }} | base64 -d > keystore.jks
37+
echo ${{ secrets.KEYSTORE_BASE64 }} | base64 -d > $GITHUB_WORKSPACE/keystore.jks
38+
# Debug: Check if file exists and show workspace
39+
ls -la $GITHUB_WORKSPACE
40+
echo "Keystore location: $GITHUB_WORKSPACE/keystore.jks"
3841
3942
- name: Grant execute permission for gradlew
4043
run: chmod +x gradlew
@@ -44,22 +47,30 @@ jobs:
4447
API_KEY: ${{ secrets.API_KEY }}
4548
run: ./gradlew assembleRelease
4649

47-
- name: Align APK
50+
- name: Align and Sign APK
4851
run: |
4952
cd app/build/outputs/apk/release
53+
# Debug: Show current directory contents
54+
pwd
55+
ls -la
56+
57+
# Align APK
5058
zipalign -v -p 4 app-release-unsigned.apk ludditeinstaller-aligned.apk
51-
52-
- name: Sign APK
53-
run: |
54-
apksigner sign --ks ../../../keystore.jks \
59+
60+
# Debug: Verify aligned APK exists
61+
ls -la ludditeinstaller-aligned.apk
62+
63+
# Sign APK using absolute paths
64+
apksigner sign --ks $GITHUB_WORKSPACE/keystore.jks \
5565
--ks-pass pass:${{ secrets.KEYSTORE_PASSWORD }} \
5666
--ks-key-alias ${{ secrets.KEY_ALIAS }} \
5767
--key-pass pass:${{ secrets.KEY_PASSWORD }} \
58-
app/build/outputs/apk/release/ludditeinstaller-aligned.apk
68+
ludditeinstaller-aligned.apk
5969
6070
- name: Verify APK
6171
run: |
62-
apksigner verify app/build/outputs/apk/release/ludditeinstaller-aligned.apk
72+
cd app/build/outputs/apk/release
73+
apksigner verify ludditeinstaller-aligned.apk
6374
6475
- name: Release
6576
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)