Skip to content

Commit

Permalink
update pypi workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alchem0x2A committed Nov 16, 2024
1 parent 4b60e22 commit 6ab36b5
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@ name: Publish PyPI package
on:
# The workflow runs on each push / PR but only allow upload
# PyPI when tagged
push:
branches:
- master
pull_request:
branches:
- master
release:
types:
- created
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -52,4 +49,4 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: github.event.release.draft == false

0 comments on commit 6ab36b5

Please sign in to comment.