Skip to content

Commit

Permalink
ci: trigger wheel build on version tags
Browse files Browse the repository at this point in the history
  • Loading branch information
P403n1x87 committed Jul 6, 2023
1 parent b386348 commit 151e5d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
push:
branches:
- main
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

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

0 comments on commit 151e5d8

Please sign in to comment.