Skip to content

Commit

Permalink
Update publish-to-test-pypi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisOlivaresJ authored Oct 3, 2023
1 parent 5a3d66d commit cb7fc90
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI

on: push
on:
pull_request:
types:
-closed
branches:
main

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

0 comments on commit cb7fc90

Please sign in to comment.