-
Notifications
You must be signed in to change notification settings - Fork 126
36 lines (36 loc) · 1.02 KB
/
docs.yml
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
35
36
name: GitHub Pages
on:
workflow_dispatch:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
fetch-depth: 10
- uses: actions/setup-node@v3
with:
node-version: "20"
cache: yarn
- run: yarn install --frozen-lockfile
- name: Typecheck
run: yarn typecheck
- name: Compile
run: yarn compile
- name: Install sharp
run: cd docs && yarn add sharp
- name: Build docs
run: yarn build:docs
- name: no jekyll
run: touch docs/dist/.nojekyll
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/dist
single-commit: true