Skip to content

Commit

Permalink
secret
Browse files Browse the repository at this point in the history
  • Loading branch information
LexiphanicStroon committed Jan 24, 2024
1 parent 43c705d commit b1115ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down

0 comments on commit b1115ac

Please sign in to comment.