diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 6088670f..8eeee416 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -38,7 +38,6 @@ jobs: working-directory: ./website run: npm ci - - name: Build website working-directory: ./website run: | @@ -46,6 +45,13 @@ jobs: env: 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' + - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: diff --git a/examples/basic-map/index.html b/examples/basic-map/index.html index 8edcfc78..e15e0c27 100644 --- a/examples/basic-map/index.html +++ b/examples/basic-map/index.html @@ -24,6 +24,7 @@