diff options
Diffstat (limited to '.github/workflows/website.yml')
| -rw-r--r-- | .github/workflows/website.yml | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 4cc922d8..4c1be29c 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -6,6 +6,7 @@ on: - ".github/workflows/website.yml" - "website/**" - "docs/next/website/**" + - "docs/preview/**" - "docs/versions/**" - "scripts/test_preview.py" push: @@ -14,6 +15,7 @@ on: - ".github/workflows/website.yml" - "website/**" - "docs/next/website/**" + - "docs/preview/**" - "docs/versions/**" - "scripts/test_preview.py" @@ -40,8 +42,13 @@ jobs: with: bun-version: 1.3.14 - - name: Validate version snapshots - run: node website/scripts/docs-versions.mjs check + - name: Validate published snapshots + run: | + node website/scripts/docs-versions.mjs check + node website/scripts/docs-preview.mjs check - - name: Build website + - name: Build published website run: cd website && bun install --frozen-lockfile && bun run build + + - name: Validate unpublished draft + run: cd website && bun run build:draft |
