fix: sync docs to public-docs on stable release only (#3116)
* fix: sync docs to public-docs on release tags only Change the Sync Docs to Public Docs workflow to trigger on stable v* tag pushes instead of every commit to main that touches docs/, so the public docs only update on releases. Exclude v*dev* tags so dev pre-release tags never trigger a sync. Keep workflow_dispatch for manual syncs. On a tag push github.sha resolves to the tagged commit, so the ref sent to public-docs remains correct. Mirrors PrimeIntellect-ai/verifiers#2108. * fix: trigger docs sync on release published, not on main push Change the Sync Docs to Public Docs workflow to trigger when a stable GitHub release is published instead of every commit to main that touches docs/, so the public docs only update on actual stable releases. Dev tags (v*dev*) are created via GITHUB_TOKEN which doesn't retrigger workflows, and they don't have GitHub Releases, so using the release event with types: [published] naturally excludes them. Keep workflow_dispatch for manual syncs. On a release publish, github.sha resolves to the tagged commit, so the ref sent to public-docs remains correct.
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
name: Sync Docs to Public Docs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'docs/**'
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
Reference in New Issue
Block a user