Skip to content

Update script.js

Update script.js #8

Workflow file for this run

name: Deploy static content to Pages
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Inject API Key
run: |
sed -i 's|REPLACE_WITH_API_KEY|${{ secrets.API_KEY }}|' path/to/your/script.js # Update this with your script path
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4