Skip to content

Commit

Permalink
build each time and upload when tagged
Browse files Browse the repository at this point in the history
  • Loading branch information
chinaheyu committed Oct 20, 2024
1 parent a97ab5f commit cc8d627
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Python package

on:
push:
tags:
- '*'
on: push

jobs:
build_linux_wheels:
Expand Down Expand Up @@ -55,6 +52,7 @@ jobs:
path: dist/*.tar.gz

publish-to-pypi:
if: startsWith(github.ref, 'refs/tags/')
needs: [build_linux_wheels, build_windows_wheels, build_sdist]
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit cc8d627

Please sign in to comment.