-
Notifications
You must be signed in to change notification settings - Fork 31
37 lines (33 loc) · 1011 Bytes
/
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
37
name: Docs
on:
push:
# We only run this GitHub action upon new commits to `master`
branches:
- main
# We only run this GitHub action if there are changes in the `docs/` directory
paths:
- docs/**
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.1.3
- name: Install
run: pnpm install
- name: Build
run: pnpm run docs:build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: docs/dist/client
# Remove previous build files
clean: true
# Do not remove the `.nojekyll` file: we have manually added an empty `.nojekyll` file at the root of the `gh-pages` branch and we don't want having to re-create it after each build.
clean-exclude: |
.nojekyll