Skip to content

Commit ab4ff77

Browse files
committed
Update documentation and release workflow: Add instructions for play-store.json and enhance deployment script
1 parent 2ef2e5e commit ab4ff77

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/Release.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ jobs:
7070
files: app/build/outputs/apk/release/*.apk
7171

7272
- name: Upload to Play Store
73-
run: bundle exec fastlane android deploy
73+
run: |
74+
echo "${PLAY_STORE_JSON// /}" | base64 --decode > fastlane/play-store.json
75+
bundle exec fastlane android deploy
76+
env:
77+
PLAY_STORE_JSON: ${{ secrets.PLAY_STORE_JSON }}
7478

7579
# https://github.com/softprops/action-gh-release/issues/236
7680
permissions:

docs/github.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,15 @@ Before you can use the release workflow, you need to set up the following GitHub
5757
keyAlias=your-key-alias
5858
keyPassword=your-key-password
5959
```
60+
61+
4. `PLAY_STORE_JSON`: Base64 encoded content of your `play-store.json` file
62+
```bash
63+
base64 -i play-store.json | tr -d '\n'
64+
```
6065

6166
> [!WARNING]
62-
> Never commit your keystore file, keystore properties, or google-services.json directly to the
63-
> repository.
67+
> Never commit your keystore file, keystore properties, google-services.json or play-store.json
68+
> directly to the repository.
6469
6570
### Creating a Release
6671

0 commit comments

Comments
 (0)