Skip to content

Commit cfd2b5a

Browse files
committed
Refactor: Adjust path for Google Play JSON in CI
The Google Play JSON file is now created directly in the `app/` directory and uploaded/downloaded accordingly within the GitHub Actions workflow. This removes the need to move the file later in the process. Debugging steps have been updated to reflect this change.
1 parent d7acb3a commit cfd2b5a

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/android.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,22 @@ jobs:
5959
run: echo "${{ secrets.KEYSTORE_FILE }}" | base64 -d > ${{ env.KEYSTORE_FILE }}
6060

6161
- name: Create Google Service Account JSON
62-
run: echo "${{ secrets.GOOGLE_PLAY_JSON }}" | base64 -d > ${{ env.GOOGLE_PLAY_JSON }}
62+
run: echo "${{ secrets.GOOGLE_PLAY_JSON }}" | base64 -d > app/${{ env.GOOGLE_PLAY_JSON }}
63+
64+
- name: Debug Check if service account JSON exists
65+
run: |
66+
echo "Listing app/ folder:"
67+
ls -l app/
68+
echo "Showing first 10 lines of the JSON file:"
69+
head -n 10 app/${{ env.GOOGLE_PLAY_JSON }}
6370
6471
- name: Upload Secrets
6572
uses: actions/upload-artifact@v4
6673
with:
6774
name: secrets
6875
path: |
6976
${{ env.KEYSTORE_FILE }}
70-
${{ env.GOOGLE_PLAY_JSON }}
77+
app/${{ env.GOOGLE_PLAY_JSON }}
7178
7279
build:
7380
name: Build AAB
@@ -106,8 +113,7 @@ jobs:
106113
with:
107114
name: secrets
108115

109-
- name: Debug Secrets
110-
run: ls -la .
116+
- run: ls -la app/
111117

112118
- name: Write local.properties
113119
run: |
@@ -215,13 +221,7 @@ jobs:
215221
name: release-aab
216222
path: app/build/outputs/bundle/release
217223

218-
- name: Move Google Play JSON to app/
219-
run: |
220-
mkdir -p app/
221-
mv secrets/app/${{ env.GOOGLE_PLAY_JSON }} app/
222-
223-
- name: Debug Secrets
224-
run: ls -la app
224+
- run: ls -la app/
225225

226226
- run: bundle exec fastlane deployRelease
227227

0 commit comments

Comments
 (0)