Skip to content

Commit 44b3db2

Browse files
committed
publish to TestPyPI when the workflow is triggered from a fork
1 parent 7009136 commit 44b3db2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,9 @@ jobs:
2020
- uses: actions/checkout@v4
2121
- uses: astral-sh/setup-uv@v6.1.0
2222
- run: uv build
23-
# - run: uv publish --trusted-publishing always --index testpypi
24-
- run: uv publish --trusted-publishing always
23+
- name: Publish to TestPyPI
24+
if: github.repository != 'Spherinator/Spherinator'
25+
run: uv publish --trusted-publishing always --index testpypi
26+
- name: Publish to PyPI
27+
if: github.repository == 'Spherinator/Spherinator'
28+
run: uv publish --trusted-publishing always

0 commit comments

Comments
 (0)