Skip to content

Fix missing base path for GH pages #111

Fix missing base path for GH pages

Fix missing base path for GH pages #111

name: Deploy to GH Pages
on:
push:
branches:
- main
paths-ignore:
- "**/README.md"
- ".vscode/**"
jobs:
build-and-deploy:
name: Build & deploy
runs-on: ubuntu-latest
steps:
- name: Checkout latest code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: npm
- name: Install dependencies
run: "npm ci"
- name: Build site
env:
VITE_HISTORY_MODE: "hash"
BASE_PATH: recipes
run: "npm run build"
- name: Deploy to GitHub pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist