Skip to content

Commit

Permalink
Updated workflow to be triggered by releases
Browse files Browse the repository at this point in the history
  • Loading branch information
fullerzz committed Nov 24, 2023
1 parent 479b0a9 commit 9caa225
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI

on:
push:
branches: [ "main" ]
release:
types: [ published ]

jobs:
build:
Expand Down Expand Up @@ -45,7 +45,6 @@ jobs:
publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9caa225

Please sign in to comment.