Skip to content

update

update #7

name: Build and Deploy to GitHub Pages
# Automated build and deployment workflow
on:
push:
branches: [master]
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '23'
cache: 'npm'
- run: npm ci
- run: npm run build
env:
BASE_PATH: /ShaderWeb
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build