Skip to content

Commit fd57ce8

Browse files
authored
Publish to test TestPyPI before publishing to PyPI (#223)
1 parent 11754df commit fd57ce8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release-python.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ jobs:
7676
with:
7777
name: all-dist-${{ github.run_id }}
7878
path: dist/
79+
- name: Publish package distributions to TestPyPI
80+
uses: pypa/gh-action-pypi-publish@release/v1
81+
with:
82+
repository-url: https://test.pypi.org/legacy/
83+
skip-existing: true
7984
- name: Publish package distributions to PyPI
8085
if: startsWith(inputs.dry_run, 'false')
8186
uses: pypa/gh-action-pypi-publish@release/v1
@@ -108,5 +113,4 @@ jobs:
108113
silk_asset_group: ${{ env.SILK_ASSET_GROUP }}
109114
evergreen_project: ${{ env.EVERGREEN_PROJECT }}
110115
token: ${{ github.token }}
111-
repository_url: https://test.pypi.org/legacy/
112116
dry_run: ${{ inputs.dry_run }}

0 commit comments

Comments
 (0)