Tweak push rules for release build
This commit is contained in:
parent
f192afd5f5
commit
aff1df5062
|
@ -7,6 +7,8 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- main
|
||||
tags:
|
||||
- v**
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
|
@ -112,6 +114,7 @@ jobs:
|
|||
|
||||
upload_pypi:
|
||||
# TODO: create an sdist that can build without a custom environment
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
||||
needs: [build_wheels]
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
|
@ -132,7 +135,6 @@ jobs:
|
|||
environment: pypi
|
||||
permissions:
|
||||
id-token: write
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
||||
steps:
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
|
|
Loading…
Reference in New Issue