Skip to content

Commit d7e5ba1

Browse files
authored
add manual publish trigger (#19)
1 parent c857993 commit d7e5ba1

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 10 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. v0.1.4)"
11+
required: true
712

813
jobs:
914
# ── 1. Run tests before publishing ─────────────────────────────────────────
@@ -12,6 +17,8 @@ jobs:
1217
runs-on: ubuntu-latest
1318
steps:
1419
- uses: actions/checkout@v4
20+
with:
21+
ref: ${{ github.event.inputs.tag || github.ref }}
1522
- uses: actions/setup-python@v5
1623
with:
1724
python-version: "3.11"
@@ -26,6 +33,8 @@ jobs:
2633
runs-on: ubuntu-latest
2734
steps:
2835
- uses: actions/checkout@v4
36+
with:
37+
ref: ${{ github.event.inputs.tag || github.ref }}
2938

3039
- uses: actions/setup-python@v5
3140
with:
@@ -84,5 +93,6 @@ jobs:
8493
- name: Create GitHub Release
8594
uses: softprops/action-gh-release@v2
8695
with:
96+
tag_name: ${{ github.event.inputs.tag || github.ref_name }}
8797
files: dist/*
8898
generate_release_notes: true

0 commit comments

Comments
 (0)