Skip to content

Commit 0a1c1cf

Browse files
Fix docs deployment for tag pushes using workflow_dispatch
GitHub Pages only accepts deployments from the master branch context. When a tag push triggered the docs workflow, the deployment would silently fail to update the live site. This change: - Removes the tag trigger from docs.yaml - Adds docs-trigger.yaml that triggers the docs workflow via workflow_dispatch API when a tag is pushed - This ensures the docs workflow always runs in master context while still being triggered by tag releases 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2250e5b commit 0a1c1cf

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Trigger Docs on Tag
2+
3+
on:
4+
push:
5+
tags: ['v*']
6+
7+
permissions:
8+
actions: write
9+
10+
jobs:
11+
trigger-docs:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/github-script@v7
15+
with:
16+
script: |
17+
await github.rest.actions.createWorkflowDispatch({
18+
owner: context.repo.owner,
19+
repo: context.repo.repo,
20+
workflow_id: 'docs.yaml',
21+
ref: 'master'
22+
})

.github/workflows/docs.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
workflow_dispatch:
55
push:
66
branches: ['master']
7-
tags: ['v*']
87

98
permissions:
109
contents: read

0 commit comments

Comments
 (0)