Skip to content

Add GitHub Page Publish Action #1

Add GitHub Page Publish Action

Add GitHub Page Publish Action #1

name: GitHub Page Publish
on:
push:
branches: ['main']
paths-ignore: ['test/**']
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- run: npm install
- run: npm run build
- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
enable_jekyll: false