Skip to content

Commit

Permalink
fix: only run pipeline on tag push
Browse files Browse the repository at this point in the history
  • Loading branch information
cybardev committed Jan 24, 2024
1 parent 742453a commit 07310e2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Publish Python distribution to PyPI and TestPyPI

on:
push:
branches:
- main
tags:
- "v*"

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

0 comments on commit 07310e2

Please sign in to comment.