-
-
Notifications
You must be signed in to change notification settings - Fork 550
34 lines (34 loc) · 861 Bytes
/
website.yml
File metadata and controls
34 lines (34 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Publish website
on:
# branches pushed by collaborators
push:
branches:
- docs
permissions: {}
jobs:
build:
permissions:
contents: write
name: Build & Deploy
runs-on: ubuntu-20.04
steps:
# checkout code
- uses: actions/checkout@v2
# install node
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
# Render typedoc
- run: npm install && npx typedoc
# Render docusaurus and deploy website
- run: |
set -euo pipefail
git config --global user.name "GitHub Action"
git config --global user.email "github-action@users.noreply.github.com"
cd website
yarn
yarn deploy
env:
GIT_USER: ${{ github.actor }}
GIT_PASS: ${{ secrets.GITHUB_TOKEN }}