Skip to content

Commit c00e50a

Browse files
committed
adding testpypi
1 parent de462e3 commit c00e50a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/build_wheels_and_release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,26 @@ jobs:
4040
path: ./quaddtype/wheelhouse/*.whl
4141
name: wheels-${{ matrix.os }}
4242

43+
publish_to_testpypi:
44+
name: Publish to TestPyPI
45+
needs: build_wheels
46+
runs-on: ubuntu-latest
47+
if: github.event_name == 'push' && (github.ref == 'refs/heads/testing-pkg' || startsWith(github.ref, 'refs/tags/'))
48+
49+
steps:
50+
- name: Download all workflow run artifacts
51+
uses: actions/download-artifact@v2
52+
with:
53+
path: dist
54+
55+
- name: Publish to TestPyPI
56+
uses: pypa/gh-action-pypi-publish@release/v1
57+
with:
58+
user: __token__
59+
password: ${{ secrets.PYPI_API_TOKEN }}
60+
repository-url: https://test.pypi.org/legacy/
61+
packages-dir: dist/*
62+
4363
create_release:
4464
name: Create Release
4565
needs: build_wheels

0 commit comments

Comments
 (0)