Skip to content

Publish Website

Publish Website #103

name: Publish Website
on:
workflow_dispatch:
push:
paths:
- 'website/*'
branches:
- main
jobs:
website:
name: Publish website
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
working-directory: website
run: |
npm ci
- name: Build website
working-directory: website
run: |
npm run build
- name: Publish website
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/build