Skip to content

Commit 175a5d3

Browse files
committed
Add testpypi code
1 parent 7a81595 commit 175a5d3

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,20 @@ jobs:
4545
uv pip install twine
4646
uv run twine check dist/*
4747
echo "Dry run completed. Package would be published in a release."
48-
- name: Publish to PyPI
49-
if: ${{github.event_name == 'release'}}
48+
# - name: Publish to PyPI
49+
# if: ${{github.event_name == 'release'}}
50+
# shell: bash
51+
# env:
52+
# UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
53+
# run: |
54+
# set -eux
55+
# uv publish
56+
- name: Publish to TestPyPI
57+
if: ${{github.event_name == 'workflow_dispatch'}}
5058
shell: bash
5159
env:
52-
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
60+
UV_PUBLISH_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
61+
UV_PUBLISH_URL: https://test.pypi.org/legacy/
5362
run: |
5463
set -eux
55-
uv publish
64+
uv publish --publish-url https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)