summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/test.yml5
-rw-r--r--.github/workflows/wheel.yml8
2 files changed, 12 insertions, 1 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 2a796aa..d01d74c 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -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 }}
diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml
index 541654d..9e8dce8 100644
--- a/.github/workflows/wheel.yml
+++ b/.github/workflows/wheel.yml
@@ -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 }}