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