-
Notifications
You must be signed in to change notification settings - Fork 45
41 lines (35 loc) · 947 Bytes
/
docs.yaml
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
name: Deploy Docs to GitHub Pages
on:
push:
paths:
- docs/**
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy-docs:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3.0.0
- uses: actions/setup-node@v4
with:
node-version: 18.x
cache: pnpm
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Build website
run: pnpm run --filter docs... build
env:
GIT_PLATFORM: github
CR_URL: ghcr.io/pkuhpc/scow
BASE_PATH: /${{ github.event.repository.name }}/
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./docs/build
clean-exclude: pr-preview/
force: false