mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-19 20:03:16 +00:00
Use Actions to publish to PyPI
This commit is contained in:
parent
a34dc945bf
commit
caadbf2df5
2 changed files with 12 additions and 1 deletions
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
|
@ -42,3 +42,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
MSGPACK_PUREPYTHON=1 pytest -v test
|
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
.github/workflows/wheel.yml
vendored
8
.github/workflows/wheel.yml
vendored
|
@ -43,9 +43,15 @@ jobs:
|
||||||
CIBW_ARCHS_MACOS: x86_64 universal2 arm64
|
CIBW_ARCHS_MACOS: x86_64 universal2 arm64
|
||||||
CIBW_SKIP: pp*
|
CIBW_SKIP: pp*
|
||||||
|
|
||||||
- name: Upload Wheels
|
- name: Upload Wheels to artifact
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: Wheels
|
name: Wheels
|
||||||
path: wheelhouse
|
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 }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue