Skip to content

update public directory #43

update public directory

update public directory #43

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: ["main"]
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
env:
NODE_ENV: production
- name: Add routing files
run: |
cp dist/index.html dist/404.html
touch dist/.nojekyll
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
branch: gh-pages
clean: true
clean-exclude: |
.nojekyll
CNAME