Commit 9f0466d5 authored by Michael Davidsaver's avatar Michael Davidsaver

ci: only upload tags

parent 754e1b38
......@@ -86,9 +86,9 @@ jobs:
name: tar
path: dist/setuptools_dso-*.tar.*
- name: Upload
if: github.event_name=='push' && github.ref=='refs/heads/master'
if: startsWith(github.ref, 'refs/tags/')
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload --skip-existing dist/*
twine upload dist/*
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment