Skip to content

Commit

Permalink
trigger on release
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekbhr committed Jun 19, 2024
1 parent 24be014 commit b8d1e2f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: pypi
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types: [published]
jobs:
pypi:
name: upload to pypi
Expand All @@ -28,7 +24,7 @@ jobs:
rm -f dist/*
hatch build -t sdist
- name: upload
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
#if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Expand Down

0 comments on commit b8d1e2f

Please sign in to comment.