Skip to content

Commit

Permalink
Tweak push rules for release build
Browse files Browse the repository at this point in the history
  • Loading branch information
robtaylor committed Aug 11, 2023
1 parent f192afd commit aff1df5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
push:
branches:
- main
tags:
- v**
release:
types:
- published
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit aff1df5

Please sign in to comment.