2022-09-20 22:00:57 +00:00
|
|
|
---
|
|
|
|
name: Deploy to GitHub Pages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
2022-09-20 22:39:59 +00:00
|
|
|
lint:
|
|
|
|
name: Lint Docs
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-21 22:57:05 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-09-20 22:39:59 +00:00
|
|
|
- name: Lint docs
|
|
|
|
uses: articulate/actions-markdownlint@v1
|
|
|
|
with:
|
|
|
|
version: 0.32.2
|
|
|
|
|
2022-09-20 22:00:57 +00:00
|
|
|
deploy:
|
|
|
|
name: Deploy to GitHub Pages
|
|
|
|
runs-on: ubuntu-latest
|
2022-09-20 22:39:59 +00:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: website
|
2022-09-20 22:00:57 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-09-20 22:54:44 +00:00
|
|
|
|
2022-09-20 22:00:57 +00:00
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 18
|
|
|
|
cache: npm
|
2022-09-20 22:54:44 +00:00
|
|
|
cache-dependency-path: website/package-lock.json
|
2022-09-20 22:00:57 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
- name: Build website
|
|
|
|
run: npm run build
|
|
|
|
|
|
|
|
- name: Deploy to GitHub Pages
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# Build output to publish to the `gh-pages` branch:
|
2022-09-20 22:39:59 +00:00
|
|
|
publish_dir: ./website/build
|