Skip to content
name: GitHub Pages Deploy CI
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3
- name: Use Node.js 20
# https://github.com/actions/setup-node
- uses: actions/setup-node@v3
with:
node-version: 20
cache: npm
- name: Install and Build
run: npm ci && npm run build && touch ./out/.nojekyll
- name: Deploy to GitHub Pages
# https://github.com/JamesIves/github-pages-deploy-action
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: out