Skip to content

Fix GH Pages deploy by adding base to config #12

Fix GH Pages deploy by adding base to config

Fix GH Pages deploy by adding base to config #12

Workflow file for this run

name: gh-pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["master", "main"]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: 20.x
- name: Build
run: |
npm i
npm run build
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}