Skip to content

Commit

Permalink
Use v tag to release on Pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
relf committed Oct 30, 2023
1 parent ba2c262 commit 531b872
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Build and upload to PyPI

on:
workflow_dispatch:
release:
types: [published]
push:
branches: [master]

jobs:
build_wheels:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
environment: pypi
permissions:
id-token: write
if: github.event_name == 'release' && github.event.action == 'published'
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 531b872

Please sign in to comment.