Tweak push rules for release build

This commit is contained in:
Robert Taylor 2023-08-11 14:25:11 +00:00
parent f192afd5f5
commit aff1df5062
1 changed files with 3 additions and 1 deletions

View File

@ -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: