Skip to content

Trying to fix the viewer with GitHub pages. #8

Trying to fix the viewer with GitHub pages.

Trying to fix the viewer with GitHub pages. #8

name: Build and Deploy to GitHub Pages
on:
push:
branches:
- main # Set this to your default branch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20' # Specify your Node.js version
- name: Install Dependencies
run: npm install # or use yarn
- name: Build
run: npm run build # or use yarn
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist # The folder the action should deploy.
token: ${{ secrets.DEPLOY_TOKEN }} # Use the PAT for authentication