Skip to content

Commit 5cbdd3e

Browse files
committed
ci: add workflow_dispatch trigger to publish workflow
Allows manually re-running the publish pipeline for an existing tag.
1 parent 77b8d99 commit 5cbdd3e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
push:
55
tags:
66
- "v*"
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: "Tag to publish (e.g. v1.0.0)"
11+
required: true
712

813
jobs:
914
build:
@@ -12,6 +17,7 @@ jobs:
1217
- uses: actions/checkout@v4
1318
with:
1419
fetch-depth: 0 # needed for setuptools_scm to derive version from tags
20+
ref: ${{ github.event.inputs.tag || github.ref }}
1521

1622
- uses: actions/setup-python@v5
1723
with:

0 commit comments

Comments
 (0)