diff --git a/.github/workflows/bld_wheels_and_upload.yml b/.github/workflows/bld_wheels_and_upload.yml index 255f4b91..63e85740 100644 --- a/.github/workflows/bld_wheels_and_upload.yml +++ b/.github/workflows/bld_wheels_and_upload.yml @@ -18,6 +18,7 @@ jobs: uses: pypa/cibuildwheel@v2.12.1 env: CIBW_SKIP: "*-win32" + CIBW_SKIP: "pp*" - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl @@ -87,7 +88,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - # upload to PyPI on every tag starting with 'v' + #upload to PyPI on every tag starting with 'v' #if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') # alternatively, to publish when a GitHub Release is created, use the following rule: # if: github.event_name == 'release' && github.event.action == 'published' @@ -100,6 +101,12 @@ jobs: path: dist - uses: pypa/gh-action-pypi-publish@v1.5.0 with: - user: {{secrets.TESTPYPI_USER}} - password: {{secrets.TESTPYPI_PASSWORD}} + user: ${{secrets.TESTPYPI_USER}} + password: ${{secrets.TESTPYPI_PASSWORD}} repository_url: https://test.pypi.org/legacy/ + + - name: Release to PYPI + uses: pypa/gh-action-pypi-publish@master + with: + user: ${{secrets.TESTPYPI_USER}} + password: ${{secrets.TESTPYPI_PASSWORD}}