Skip to content

Commit 46517fb

Browse files
committed
Preview docs
1 parent 99774c8 commit 46517fb

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/docs-preview.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Documentation Preview
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
- closed
10+
paths:
11+
- 'docs/**'
12+
- '.github/workflows/docs.yml'
13+
14+
concurrency: preview-${{ github.ref }}
15+
16+
17+
jobs:
18+
deploy-preview:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Install and Build
25+
if: github.event.action != 'closed'
26+
working-directory: ./docs
27+
run: |
28+
npm install
29+
npm run docs:build
30+
31+
- name: Deploy preview
32+
uses: rossjrw/pr-preview-action@v1
33+
with:
34+
source-dir: ./docs/.vitepress/dist

0 commit comments

Comments
 (0)