Skip to content

Commit f8f87fd

Browse files
committed
Skip 'deploy' job unless on a tag
Fix #158
1 parent 3efdf9f commit f8f87fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ jobs:
5656
5757
deploy:
5858

59+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
60+
5961
runs-on: ubuntu-latest
6062

6163
needs: [build, linting]
6264

63-
6465
steps:
6566
- uses: actions/checkout@v1
6667
- name: Set up Python
@@ -75,7 +76,6 @@ jobs:
7576
run: |
7677
python setup.py sdist bdist_wheel
7778
- name: Publish package to PyPI
78-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
7979
uses: pypa/gh-action-pypi-publish@master
8080
with:
8181
user: __token__

0 commit comments

Comments
 (0)