Skip to content

Commit

Permalink
update action to add a google maps api key
Browse files Browse the repository at this point in the history
  • Loading branch information
bwees committed Aug 28, 2024
1 parent 42d54a4 commit 52d4e7f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ jobs:
# # Add the new release signing configuration to signingConfigs
# sed -i '/signingConfigs {/a\ release {\n keyAlias System.getenv("KEY_ALIAS")\n keyPassword System.getenv("KEY_PASSWORD")\n storeFile file("maroon-rides-release-key.jks")\n storePassword System.getenv("STORE_PASSWORD")\n }' android/app/build.gradle
- name: Write Google Maps API Key to app.json
run: sed -i "s/{{GOOGLE_MAPS_KEY}}/$GOOGLE_MAPS_KEY/g" app.json
env:
GOOGLE_MAPS_KEY: ${{ secrets.GOOGLE_MAPS_KEY }}

- name: Decode Keystore
run: |
echo "${{ secrets.AAB_SIGNING_KEY }}" | base64 --decode > "./android/app/maroon-rides-release-key.jks"
Expand Down
5 changes: 5 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"config": {
"googleMaps": {
"apiKey": "{{GOOGLE_MAPS_KEY}}"
}
},
"splash": {
"image": "./assets/splash.png",
"resizeMode": "cover",
Expand Down

0 comments on commit 52d4e7f

Please sign in to comment.