Update documentation #28
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 Web Site | |
on: | |
push: | |
branches: | |
- master | |
- main | |
jobs: | |
build: | |
name: Build and Deploy Website | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code using Git | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- run: pnpm i | |
- name: Build | |
run: pnpm run build | |
- name: Setup SPA Redirect | |
run: cp dist/index.html dist/404.html | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist | |
cname: docs.angor.io |