| @@ -8,7 +8,7 @@ env: | |||||
| jobs: | jobs: | ||||
| build_wheels: | build_wheels: | ||||
| name: Build wheels on | |||||
| name: Build wheels | |||||
| runs-on: ubuntu-latest | runs-on: ubuntu-latest | ||||
| steps: | steps: | ||||
| - uses: actions/checkout@v3 | - uses: actions/checkout@v3 | ||||
| @@ -40,10 +40,7 @@ jobs: | |||||
| upload_pypi: | upload_pypi: | ||||
| needs: [build_wheels, build_sdist] | needs: [build_wheels, build_sdist] | ||||
| runs-on: ubuntu-latest | runs-on: ubuntu-latest | ||||
| # 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' | |||||
| if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |||||
| steps: | steps: | ||||
| - uses: actions/download-artifact@v3 | - uses: actions/download-artifact@v3 | ||||
| with: | with: | ||||