From bda0b8821e34893efb6282505a56f69af626a8fd Mon Sep 17 00:00:00 2001 From: Liam Keegan Date: Fri, 21 Jun 2024 09:39:21 +0200 Subject: [PATCH] Fix ci: also do pypi deployment on tagged commits - bump cibuildwheel to 2.19 --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0eae52e..7ee2288 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -93,7 +93,7 @@ jobs: if: runner.os == 'Linux' && matrix.emulation == 'qemu' - name: Build wheels - uses: pypa/cibuildwheel@v2.18 + uses: pypa/cibuildwheel@v2.19 env: CIBW_ARCHS: "${{ matrix.arch }}" # restrict to a single Python version as wheel does not depend on Python: @@ -178,7 +178,7 @@ jobs: - name: Upload to PyPI uses: pypa/gh-action-pypi-publish@v1.8.14 - if: github.event.inputs.deploy_to_testpypi == 'false' + if: (startsWith(github.event.ref, 'refs/tags/')) || (github.event.inputs.deploy_to_testpypi == 'false') - name: Upload to TestPyPI uses: pypa/gh-action-pypi-publish@v1.8.14