feat(website): add site generation (#83) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and publish website | |
on: | |
push: | |
branches: | |
- "master" | |
jobs: | |
pages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- name: Install library dependencies | |
run: yarn install --frozen-lockfile | |
- name: Build library | |
run: yarn build | |
- name: Install website dependencies | |
run: yarn --cwd website install --frozen-lockfile | |
- name: Build website | |
run: yarn --cwd website build | |
- name: Deploy to gh-pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: website/build |