Skip to content

Commit 9785d0a

Browse files
committed
test
1 parent a4c1939 commit 9785d0a

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/mlir-tensorrt-pypi.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ on:
55
branches:
66
- "pull-request/[0-9]+"
77
workflow_dispatch:
8-
9-
env:
10-
DEFAULT_IMAGE: ghcr.io/nvidia/tensorrt-incubator/mlir-tensorrt:cuda13.0-rockylinux8-0.1
11-
REGISTRY: ghcr.io
8+
inputs:
9+
confirm_publish_to_pypi:
10+
description: 'I confirm that I have verified version to be published to pypi.org'
11+
required: true
12+
type: boolean
13+
default: false
1214

1315
defaults:
1416
run:
@@ -162,11 +164,13 @@ jobs:
162164
uses: pypa/gh-action-pypi-publish@release/v1
163165
with:
164166
packages-dir: dist-collect
167+
skip_existing: true
165168
repository-url: https://test.pypi.org/legacy
166169
verbose: true
167170

168171
pypi-release-wheels-publish:
169172
name: Publish to PyPI
173+
if: ${{ inputs.confirm_publish_to_pypi }}
170174
needs: [pypi-release-wheels-build]
171175
runs-on: ubuntu-latest
172176
permissions:
@@ -185,6 +189,7 @@ jobs:
185189
uses: pypa/gh-action-pypi-publish@release/v1
186190
with:
187191
verbose: true
192+
skip_existing: true
188193
packages-dir: dist-collect
189194
user: __token__
190195
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)