Skip to content

Commit 6390799

Browse files
committed
ci: fix bugs
1 parent dd10f4e commit 6390799

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/release-test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
name: Release to TestPyPI
22

33
on:
4-
push:
54
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: "Tag to release (e.g. v1.2.3 or v1.2.3rc1)"
8+
required: true
9+
type: string
610

711
permissions:
812
contents: read
@@ -17,6 +21,7 @@ jobs:
1721
with:
1822
fetch-depth: 0
1923
fetch-tags: true
24+
ref: ${{ github.event.inputs.tag }}
2025

2126
- name: Set up Python
2227
uses: actions/setup-python@v5

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: Release to PyPI
22

33
on:
4-
push:
54
workflow_dispatch:
65
inputs:
76
tag:
@@ -20,6 +19,8 @@ jobs:
2019
- uses: actions/checkout@v4
2120
with:
2221
fetch-depth: 0
22+
fetch-tags: true
23+
ref: ${{ github.event.inputs.tag }}
2324

2425
- name: Set up Python
2526
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)