Skip to content

Commit 63aacac

Browse files
committed
Debug keystore and local.properties in GitHub Actions workflow
This commit modifies the Android GitHub Actions workflow to: - Comment out the "Setup before script" step. - Add a step to debug the keystore file by listing the contents of the `app` directory. - Ensure `local.properties` is created or overwritten by using `>` instead of `>>` for the `sdk.dir` line. - Rename the "Debug keystore" step to "Debug local.properties" and remove the `ls -la app` command from it.
1 parent 23220e8 commit 63aacac

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

.github/workflows/android.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,29 +50,30 @@ jobs:
5050
bundle config set path 'vendor/bundle'
5151
bundle install
5252
53-
- name: Setup before script
54-
run: |
55-
chmod +x ./gradlew
56-
chmod +x ./scripts/before-ci.sh
57-
touch local.properties
58-
./scripts/before-ci.sh
59-
echo "sdk.dir=$ANDROID_HOME" >> local.properties
53+
# - name: Setup before script
54+
# run: |
55+
# chmod +x ./gradlew
56+
# chmod +x ./scripts/before-ci.sh
57+
# touch local.properties
58+
# ./scripts/before-ci.sh
59+
# echo "sdk.dir=$ANDROID_HOME" >> local.properties
6060

6161
- name: Decode Keystore File
6262
run: echo "${{ secrets.KEYSTORE_FILE }}" | base64 -d > "${{ env.KEYSTORE_FILE }}"
6363

64+
- name: Debug keystore file
65+
run: ls -la app
66+
6467
- name: Write local.properties
6568
run: |
66-
echo "sdk.dir=$ANDROID_HOME" >> local.properties
69+
echo "sdk.dir=$ANDROID_HOME" > local.properties
6770
echo "KEYSTORE_FILE=${{ env.KEYSTORE_FILE }}" >> local.properties
6871
echo "KEYSTORE_PASSWORD=${{ env.KEYSTORE_PASSWORD }}" >> local.properties
6972
echo "KEY_ALIAS=${{ env.KEY_ALIAS }}" >> local.properties
7073
echo "KEY_PASSWORD=${{ env.KEY_PASSWORD }}" >> local.properties
7174
72-
- name: Debug keystore
73-
run: |
74-
cat local.properties
75-
ls -la app
75+
- name: Debug local.properties
76+
run: cat local.properties
7677

7778
- name: Create Google Service Account JSON
7879
run: |

0 commit comments

Comments
 (0)