Skip to content

Commit abb687c

Browse files
committed
fix: only build on new tags
1 parent a610db6 commit abb687c

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/pipy_release.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: Upload Python Package
22

3-
on:
4-
- push
5-
- workflow_dispatch
3+
on:
4+
push:
5+
tags:
6+
- '*'
67

78
jobs:
89
deploy:
9-
if: "startsWith(github.event.head_commit.message, 'bump:')"
1010
runs-on: ubuntu-latest
1111

1212
steps:
@@ -34,10 +34,3 @@ jobs:
3434
run: |
3535
python setup.py sdist bdist_wheel
3636
twine upload dist/*
37-
- name: Github release
38-
uses: softprops/action-gh-release@v1
39-
with:
40-
tag_name: ${{ github.ref }}
41-
generate_release_notes: true
42-
env:
43-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)