You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[#27] improve(ci): replace testpypi with dev/rc pre-release publishing to PyPI
- Remove the 'environment' choice input (testpypi / pypi)
- Add optional 'version' input for pre-release builds
- Validate version ends with .devN or .rcN; error on invalid format
- Use 'uv version' to patch pyproject.toml instead of sed
- Fix GitHub environment to 'pypi' only
- Simplify publish step to a single 'uv publish' command
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: .github/workflows/publish.yml
+11-24Lines changed: 11 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -18,17 +18,9 @@ on:
18
18
workflow_dispatch:
19
19
inputs:
20
20
version:
21
-
description: "Version to publish (required for testpypi, e.g. 0.1.0.dev1). Ignored for pypi."
21
+
description: "Optional pre-release version to publish (e.g. 0.1.0.dev1 or 0.1.0.rc1). Must end with .devN or .rcN. Leave blank to publish the version from pyproject.toml as a production release."
22
22
required: false
23
23
type: string
24
-
environment:
25
-
description: "Target PyPI environment"
26
-
required: true
27
-
type: choice
28
-
default: "pypi"
29
-
options:
30
-
- "pypi"
31
-
- "testpypi"
32
24
ref:
33
25
description: "Branch or tag to publish from (e.g. main, v0.1.0). Defaults to the branch selected above."
0 commit comments