-
Notifications
You must be signed in to change notification settings - Fork 491
47 lines (42 loc) · 1.14 KB
/
docs-build.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
38
39
40
41
42
43
44
45
46
47
name: docs build
on:
push:
branches: [ POLARDB_15_STABLE ]
paths:
- '.github/workflows/docs*'
- 'polar-doc/**'
pull_request:
branches: [ POLARDB_15_STABLE ]
paths:
- '.github/workflows/docs*'
- 'polar-doc/**'
# trigger deployment manually
workflow_dispatch:
jobs:
docs-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: build VuePress site
run: |
cd polar-doc
pnpm install --frozen-lockfile
pnpm docs:build
# please check out the docs of the workflow for more details
# @see https://github.com/crazy-max/ghaction-github-pages
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
if: github.event_name == 'push'
with:
target_branch: gh-pages
build_dir: polar-doc/docs/.vuepress/dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}