diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b2705b5..34d83c8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,10 +20,10 @@ jobs: - name: Replace API Key and Build run: node build.js env: - GOOGLE_MAPS_API_KEY: ${{ secrets.GOOGLE_MAPS_API_KEY }} + GOOGLE_MAPS_API_KEY: ${{ secrets.GOOGLE_KEY }} - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: - deploy_key: ${{ secrets.LOCATION_KEY }} + deploy_key: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./src # Adjust if your files are in a different directory diff --git a/build.js b/build.js index 5017c2a..2316c8f 100644 --- a/build.js +++ b/build.js @@ -1,6 +1,6 @@ const fs = require('fs'); -const apiKey = process.env.GOOGLE_MAPS_API_KEY; +const apiKey = process.env.GOOGLE_KEY; const htmlFilePath = 'src/map.html'; let htmlContent = fs.readFileSync(htmlFilePath, 'utf8');