FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
commitizen/.github/workflows/pythonpublish.yml at master · commitizen-tools/commitizen · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
commitizen-tools
/
commitizen
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
349
Star
3.5k
Code
Issues
115
Pull requests
47
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
commitizen
/
.github
/
workflows
/
pythonpublish.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
44 lines (42 loc) · 1.41 KB
Breadcrumbs
commitizen
/
.github
/
workflows
/
pythonpublish.yml
Copy path
File metadata and controls
44 lines (42 loc) · 1.41 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name
:
Upload Python Package
#
The tag is now triggered by the Github App: CommitizenBot
on
:
push
:
tags
:
-
"
v*
"
#
Manual trigger for republishing a specific tag if the original push-on-tag
#
run failed and is now too old to be re-run via the GitHub UI (#1790).
#
``ref`` should be a tag name like ``v4.11.1``.
workflow_dispatch
:
inputs
:
ref
:
description
:
"
Tag to republish (e.g., v4.11.1)
"
required
:
true
type
:
string
jobs
:
deploy
:
if
:
${{ github.repository == 'commitizen-tools/commitizen' }}
runs-on
:
ubuntu-latest
permissions
:
id-token
:
write
contents
:
read
steps
:
-
name
:
Validate dispatch ref is a tag
if
:
github.event_name == 'workflow_dispatch'
env
:
TAG
:
${{ github.event.inputs.ref }}
run
:
|
if ! git ls-remote --tags "https://github.com/${GITHUB_REPOSITORY}" "refs/tags/${TAG}" | grep -q .; then
echo "::error::Dispatch ref '${TAG}' is not an existing tag"
exit 1
fi
-
uses
:
actions/checkout@v7
with
:
fetch-depth
:
0
ref
:
${{ github.event_name == 'workflow_dispatch' && format('refs/tags/{0}', github.event.inputs.ref) || github.ref }}
-
name
:
Set up Python
uses
:
astral-sh/setup-uv@v7
-
name
:
Build
run
:
uv build
-
name
:
Publish package to PyPI
uses
:
pypa/gh-action-pypi-publish@release/v1
Back
|
FazBrowse Home
|
New Git URL