Skip to content

Commit 5b79671

Browse files
committed
[CI] Enhance Twine upload commands with skip-existing and verbose options
1 parent 6ea1d52 commit 5b79671

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@ jobs:
4545
run: |
4646
python -m pip install --upgrade pip
4747
python -m pip install twine
48-
twine upload --repository-url https://test.pypi.org/legacy/ dist/* -u __token__ -p ${{ secrets.TEST_PYPI_TOKEN }}
48+
twine upload --repository-url https://test.pypi.org/legacy/ dist/* -u __token__ -p ${{ secrets.TEST_PYPI_TOKEN }} --skip-existing --verbose
4949
5050
- name: Publish to PyPI
5151
if: ${{ !(github.event_name == 'workflow_dispatch' && github.event.inputs.dry_run == 'true') }}
5252
uses: pypa/gh-action-pypi-publish@v1.5.0
5353
with:
54+
skip-existing: true
55+
verbose: true
5456
user: __token__
5557
password: ${{ secrets.PYPI_TOKEN }}
5658

0 commit comments

Comments
 (0)