Skip to content

Commit

Permalink
Skip 'deploy' job unless on a tag
Browse files Browse the repository at this point in the history
Fix #158
  • Loading branch information
nicoddemus committed Jan 28, 2020
1 parent 3efdf9f commit f8f87fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,12 @@ jobs:
deploy:

if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')

runs-on: ubuntu-latest

needs: [build, linting]


steps:
- uses: actions/checkout@v1
- name: Set up Python
Expand All @@ -75,7 +76,6 @@ jobs:
run: |
python setup.py sdist bdist_wheel
- name: Publish package to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
Expand Down

0 comments on commit f8f87fd

Please sign in to comment.