Skip to content

chore: fix website search (#1091) #66

chore: fix website search (#1091)

chore: fix website search (#1091) #66

name: Publish Website
on:
workflow_dispatch:
push:
paths:
- 'website/*'
branches:
- main
jobs:
website:
name: Publish website
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x
- 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