Skip to content

Commit

Permalink
Trigger pypi upload only on tag push
Browse files Browse the repository at this point in the history
  • Loading branch information
relf committed Oct 30, 2023
1 parent 531b872 commit 67a66ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and upload to PyPI
on:
workflow_dispatch:
push:
branches: [master]
tags: ['v*']

jobs:
build_wheels:
Expand Down Expand Up @@ -45,7 +45,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 67a66ea

Please sign in to comment.