From a12343bccc0e4bd6d44a40cd5869b8baa3a3fd32 Mon Sep 17 00:00:00 2001 From: Martin Schuhfuss Date: Thu, 18 Jan 2024 12:20:45 +0100 Subject: [PATCH] chore: fix build-step for examples.js (#166) --- .github/workflows/deploy-website.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 8eeee416..37499a89 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -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