summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2022-05-25 12:10:47 +0900
committerInada Naoki <songofacandy@gmail.com>2022-05-25 12:10:47 +0900
commitcaadbf2df5a87039a52a5dcf4fc3f151bba70eed (patch)
tree626909c7a09f80e0136ccc72b866ca7f0944894e
parenta34dc945bfe39c1f2f91af2403d906069613ea41 (diff)
downloadmsgpack-python-caadbf2df5a87039a52a5dcf4fc3f151bba70eed.tar.gz
Use Actions to publish to PyPIv1.0.4rc1
-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 }}