Skip to content

Commit 8c805c4

Browse files
committed
CI: Reintroduce publishing to Test PyPI
This time only for non-release changes though. Signed-off-by: Stephen Finucane <stephen@that.guru>
1 parent a88aeee commit 8c805c4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ jobs:
7878
run: python -m pip install build
7979
- name: Build a binary wheel and a source tarball
8080
run: python -m build --sdist --wheel --outdir dist/ .
81+
- name: Publish distribution to Test PyPI
82+
if: ${{ ! startsWith(github.ref, 'refs/tags') }}
83+
uses: pypa/gh-action-pypi-publish@release/v1
84+
with:
85+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
86+
repository_url: https://test.pypi.org/legacy/
8187
- name: Publish distribution to PyPI
8288
if: startsWith(github.ref, 'refs/tags')
8389
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)