Skip to content

Update index.html

Update index.html #39

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Install dependencies
run: npm install
- name: Run script
run: npm run deploy
env:
MY_SECRET_CODE: ${{ secrets.MY_SECRET_CODE }}
- name: Set secret in HTML file
run: echo "window.MY_SECRET_CODE='${{ secrets.MY_SECRET_CODE }}';" > ./scripts/setenv.js