Skip to content

Commit

Permalink
chore: fix build-step for examples.js (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
usefulthink committed Jan 18, 2024
1 parent 26ccc15 commit a12343b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ jobs:
GOOGLE_MAPS_API_KEY: ${{ secrets.GOOGLE_MAPS_API_KEY }}

- name: Find and Replace - Examples API Key
uses: jacobtomlinson/gha-find-replace@v3
with:
find: 'process.env.GOOGLE_MAPS_API_KEY'
replace: ${{ secrets.GOOGLE_MAPS_API_KEY_EXAMPLES }}
include: './website/build/scripts/examples.js'
working-directory: ./website/build
run: |
sed -i -e "s,process\.env\.GOOGLE_MAPS_API_KEY,\"${GOOGLE_MAPS_API_KEY_EXAMPLES}\",g" scripts/examples.js
env:
GOOGLE_MAPS_API_KEY_EXAMPLES: ${{ secrets.GOOGLE_MAPS_API_KEY_EXAMPLES }}

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
Expand Down

0 comments on commit a12343b

Please sign in to comment.