Skip to content

Commit 1b385db

Browse files
committed
Release to test-pypi on branch 'test-release'
1 parent fe0290f commit 1b385db

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@ jobs:
370370
name: Upload release
371371
needs: test
372372
runs-on: ubuntu-latest
373-
if: startsWith(github.ref, 'refs/tags/v')
374373

375374
environment:
376375
name: pypi
@@ -391,6 +390,13 @@ jobs:
391390
392391
- name: Publish PyPI package
393392
uses: pypa/gh-action-pypi-publish@release/v1
393+
if: startsWith(github.ref, 'refs/tags/v')
394+
395+
- name: Publish TestPyPI package
396+
uses: pypa/gh-action-pypi-publish@release/v1
397+
if: github.ref == 'refs/heads/test-release'
398+
with:
399+
repository-url: https://test.pypi.org/legacy/
394400

395401
- name: Create GitHub Release
396402
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)