Skip to content

Commit 23220e8

Browse files
committed
Fix: update GitHub workflow
The Android GitHub workflow has been updated to: - Make gradlew and before-ci.sh executable. - Create local.properties before writing to it. - Correctly locate the keystore file. - Add debugging steps for local.properties and app directory listing.
1 parent 92e9720 commit 23220e8

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/android.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,30 @@ jobs:
5050
bundle config set path 'vendor/bundle'
5151
bundle install
5252
53-
- name: Generate local.properties from example
53+
- name: Setup before script
5454
run: |
55+
chmod +x ./gradlew
5556
chmod +x ./scripts/before-ci.sh
57+
touch local.properties
5658
./scripts/before-ci.sh
59+
echo "sdk.dir=$ANDROID_HOME" >> local.properties
5760
5861
- name: Decode Keystore File
59-
run: echo "${{ secrets.KEYSTORE_FILE }}" | base64 -d > "app/${{ env.KEYSTORE_FILE }}"
62+
run: echo "${{ secrets.KEYSTORE_FILE }}" | base64 -d > "${{ env.KEYSTORE_FILE }}"
6063

6164
- name: Write local.properties
6265
run: |
63-
echo "sdk.dir=$ANDROID_HOME" > local.properties
66+
echo "sdk.dir=$ANDROID_HOME" >> local.properties
6467
echo "KEYSTORE_FILE=${{ env.KEYSTORE_FILE }}" >> local.properties
6568
echo "KEYSTORE_PASSWORD=${{ env.KEYSTORE_PASSWORD }}" >> local.properties
6669
echo "KEY_ALIAS=${{ env.KEY_ALIAS }}" >> local.properties
6770
echo "KEY_PASSWORD=${{ env.KEY_PASSWORD }}" >> local.properties
6871
72+
- name: Debug keystore
73+
run: |
74+
cat local.properties
75+
ls -la app
76+
6977
- name: Create Google Service Account JSON
7078
run: |
7179
mkdir -p app

0 commit comments

Comments
 (0)