Skip to content

Commit

Permalink
Use Actions to publish to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed May 25, 2022
1 parent a34dc94 commit caadbf2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,8 @@ jobs:
run: |
MSGPACK_PUREPYTHON=1 pytest -v test
- name: Publish Wheels to TestPyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
8 changes: 7 additions & 1 deletion .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,15 @@ jobs:
CIBW_ARCHS_MACOS: x86_64 universal2 arm64
CIBW_SKIP: pp*

- name: Upload Wheels
- name: Upload Wheels to artifact
uses: actions/upload-artifact@v1
with:
name: Wheels
path: wheelhouse

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

0 comments on commit caadbf2

Please sign in to comment.