Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/fern-docs-preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@

# Workflow 1 of 2 for Fern doc previews.
#
# Collects fern/, docs/, and PR metadata and uploads an artifact.
# Collects fern/, docs/, rest-api/openapi/, and PR metadata and uploads an
# artifact. fern/generators.yml references ../rest-api/openapi/spec.yaml,
# so the OpenAPI spec must travel with the artifact for the companion
# workflow's `fern generate` to resolve the API definition.
#
# The companion workflow (fern-docs-preview-comment.yml) runs after this one;
# it skips cleanly when no artifact exists (e.g. skipped fork pull_request).
Expand All @@ -27,13 +30,15 @@ on:
paths:
- 'fern/**'
- 'docs/**'
- 'rest-api/openapi/**'
- '.github/workflows/fern-docs-preview-build.yml'
push:
branches:
- 'pull-request/[0-9]+'
paths:
- 'fern/**'
- 'docs/**'
- 'rest-api/openapi/**'
- '.github/workflows/fern-docs-preview-build.yml'

permissions:
Expand Down Expand Up @@ -76,5 +81,6 @@ jobs:
path: |
fern/
docs/
rest-api/openapi/
preview-metadata/
retention-days: 1