Skip to content

fix: set correct base path for GitHub Pages and fix build input config #5

fix: set correct base path for GitHub Pages and fix build input config

fix: set correct base path for GitHub Pages and fix build input config #5

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: npm install
- name: Build library
run: npm run build
- name: Build demo page
run: npm run build:demo
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./demo-dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4