Skip to content

Commit 7d8d11d

Browse files
Martin Belangerigaw
authored andcommitted
ci: do not push to TestPyPi when a git tag is pushed to repo
Signed-off-by: Martin Belanger <[email protected]>
1 parent 39b4bee commit 7d8d11d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/libnvme-release-python.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
environment: pypi
115115
permissions:
116116
id-token: write
117-
if: github.repository == 'linux-nvme/nvme-cli'
117+
if: github.repository == 'linux-nvme/nvme-cli' && github.ref_type == 'branch'
118118
steps:
119119
- uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
120120
with:
@@ -125,6 +125,7 @@ jobs:
125125
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
126126
with:
127127
repository-url: https://test.pypi.org/legacy/
128+
#skip_existing: true
128129

129130
upload_pypi:
130131
needs: [build_sdist]

0 commit comments

Comments
 (0)