Skip to content

Commit fdca211

Browse files
committed
Fix publish workflow condition (2nd attempt)
1 parent 35ad9a6 commit fdca211

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ name: Publish package to PyPI
22

33
on:
44
push:
5-
# Only push to master branch
6-
branches: [master]
5+
tags:
6+
- '*'
77

88
jobs:
99
build-n-publish:
1010
runs-on: ubuntu-20.04
11-
# Only publish on tags
12-
if: startsWith(github.event.ref, 'refs/tags/v')
1311
steps:
1412
- uses: actions/checkout@master
1513
- name: Set up Python 3.9

0 commit comments

Comments
 (0)