-
Notifications
You must be signed in to change notification settings - Fork 52
39 lines (33 loc) · 1.01 KB
/
docs-preview.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
name: Deploy Docs Preview to GitHub Pages
on:
pull_request:
branches: [master]
types: ["opened", "reopened", "synchronize", "closed"]
paths:
- docs/**
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy-docs-preview:
name: Deploy Docs Preview
runs-on: ${{ vars.ACTION_RUNNER_LABEL }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/[email protected]
- 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/${{ github.event.repository.name }}
BASE_PATH: /${{ github.event.repository.name }}/pr-preview/pr-${{ github.event.number }}/
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./docs/build/