Skip to content

Only deploy root docs to website on release builds#88

Merged
ghackett merged 1 commit into
mainfrom
fix-root-docs-deploy-gating
Jul 13, 2026
Merged

Only deploy root docs to website on release builds#88
ghackett merged 1 commit into
mainfrom
fix-root-docs-deploy-gating

Conversation

@ghackett

Copy link
Copy Markdown
Member

Problem

The publish job in publish-artifacts.yml runs on every push to main as well as on v* release tags, and the "Deploy root docs to website" step only excluded pull requests. Every merge to main therefore redeployed the site root with the current snapshot version's instructions, clobbering the latest release's docs.

Fix

Tighten the step's condition to if: github.ref_type == 'tag', so the site root is only updated by release builds (the v* tag pushed from a release branch when shipping). Tag pushes are never pull requests, so the previous PR exclusion is preserved. "Deploy dokka to website" is intentionally unchanged — it still runs on pushes to main (deploying to /docs/main/) as well as on release tags.

Same fix as episode6/redux-store-flow#115.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ln68zwMS12XmqUefnBypep

The "Deploy root docs to website" step ran on every push to main,
overwriting the site root with snapshot-version instructions. Tighten
its condition from excluding pull requests to requiring a v* tag push
(release builds), so only releases update the root docs; "Deploy dokka
to website" still runs on main pushes too.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ln68zwMS12XmqUefnBypep
@ghackett ghackett marked this pull request as ready for review July 13, 2026 11:49
@ghackett ghackett merged commit 1d6847c into main Jul 13, 2026
4 checks passed
@ghackett ghackett deleted the fix-root-docs-deploy-gating branch July 13, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant