-
Notifications
You must be signed in to change notification settings - Fork 1.9k
42 lines (35 loc) · 1.07 KB
/
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
38
39
40
41
42
name: Docs checks
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
pull_request:
paths:
- "docs/**"
- ".github/actions/validate-docs-links/**"
- ".github/workflows/docs.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
validate-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Setup Node"
uses: ./.github/actions/setup-node
- name: "Build docs"
run: |
pnpm install --global vercel
job_id=$(curl -X POST ${{secrets.DOCS_DEPLOY_HOOK_URL}} | jq -r '.job.id')
vc inspect $job_id --wait
validate-docs-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Setup Node"
uses: ./.github/actions/setup-node
- name: "Run link checker"
run: cd docs && pnpm run check-links
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}