Skip to content

Commit a06e1bc

Browse files
Merge pull request #633 from laughingman7743/fix/docs-deployment-from-tags
Fix docs deployment from tag triggers by using workflow_dispatch
2 parents 92054a1 + 856fb17 commit a06e1bc

2 files changed

Lines changed: 23 additions & 2 deletions

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: 1 addition & 2 deletions
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
@@ -24,7 +23,7 @@ jobs:
2423
- name: Checkout
2524
uses: actions/checkout@v4
2625
with:
27-
fetch-depth: 0 # Fetch all history for version detection
26+
fetch-depth: 0 # Fetch all history for sphinx-multiversion
2827
- name: Setup Pages
2928
uses: actions/configure-pages@v5
3029
- uses: astral-sh/setup-uv@v5

0 commit comments

Comments
 (0)