Skip to content

Commit da06095

Browse files
committed
ci: update GOOGLE_PLAY_JSON_PATH and workflow
The environment variable `GOOGLE_PLAY_JSON_PATH` is renamed to `GOOGLE_PLAY_JSON` and its value is updated. The GitHub Actions workflow is updated to: - Use the new `GOOGLE_PLAY_JSON` environment variable when creating the Google Service Account JSON file. - Upload the `GOOGLE_PLAY_JSON` file as an artifact. - Add a step to move the JSON file to the `app/` directory before building the AAB.
1 parent de000f9 commit da06095

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/android.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
env:
1212
KEYSTORE_FILE: keystore-qrbarcode.jks
13-
GOOGLE_PLAY_JSON_PATH: app/qrbarcode-8b0b8-aaefa03b2374.json
13+
GOOGLE_PLAY_JSON: qrbarcode-8b0b8-aaefa03b2374.json
1414
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
1515
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
1616
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
@@ -59,15 +59,15 @@ 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_PATH }}
62+
run: echo "${{ secrets.GOOGLE_PLAY_JSON }}" | base64 -d > ${{ env.GOOGLE_PLAY_JSON }}
6363

6464
- name: Upload Secrets
6565
uses: actions/upload-artifact@v4
6666
with:
6767
name: secrets
6868
path: |
6969
${{ env.KEYSTORE_FILE }}
70-
${{ env.GOOGLE_PLAY_JSON_PATH }}
70+
${{ env.GOOGLE_PLAY_JSON }}
7171
7272
build:
7373
name: Build AAB
@@ -215,6 +215,9 @@ jobs:
215215
name: release-aab
216216
path: app/build/outputs/bundle/release
217217

218+
- name: Move JSON to app/
219+
run: mv *.json app/
220+
218221
- name: Debug Secrets
219222
run: ls -la app
220223

0 commit comments

Comments
 (0)