Skip to content

Commit caadbf2

Browse files
committed
Use Actions to publish to PyPI
1 parent a34dc94 commit caadbf2

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/test.yml

+5
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,8 @@ jobs:
4242
run: |
4343
MSGPACK_PUREPYTHON=1 pytest -v test
4444
45+
- name: Publish Wheels to TestPyPI
46+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
47+
uses: pypa/gh-action-pypi-publish@release/v1
48+
with:
49+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/wheel.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,15 @@ jobs:
4343
CIBW_ARCHS_MACOS: x86_64 universal2 arm64
4444
CIBW_SKIP: pp*
4545

46-
- name: Upload Wheels
46+
- name: Upload Wheels to artifact
4747
uses: actions/upload-artifact@v1
4848
with:
4949
name: Wheels
5050
path: wheelhouse
5151

52+
- name: Publish Wheels to TestPyPI
53+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
54+
uses: pypa/gh-action-pypi-publish@release/v1
55+
with:
56+
packages_dir: wheelhouse
57+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)