Skip to content

Commit 0e546e4

Browse files
committed
ci: deploy docs on docs changes to main
docs-only merges (theme bumps, content edits) previously never shipped — the pages deploy only ran on release: published. also restores a manual workflow_dispatch trigger.
1 parent c66c2d2 commit 0e546e4

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/deploy-docs.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
name: Deploy Documentation
22

33
# Publish docs when a version is released (changesets creates a GitHub Release on publish), so the
4-
# site documents the latest *released* library rather than every commit on main.
4+
# site documents the latest *released* library — and also when the docs themselves change on main
5+
# (theme bumps, content edits), since those need no library release to be worth shipping.
56
on:
67
release:
78
types: [published]
9+
push:
10+
branches: [main]
11+
paths:
12+
- "docs/**"
13+
- "pnpm-workspace.yaml"
14+
- ".github/workflows/deploy-docs.yml"
15+
workflow_dispatch:
816

917
permissions:
1018
contents: read

0 commit comments

Comments
 (0)