Skip to content

Commit

Permalink
Prevent publishing to testpypi on pull requests to main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
AnesBenmerzoug committed Nov 3, 2024
1 parent a851662 commit dc169b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
name: Publish package to TestPyPI
runs-on: ubuntu-latest
needs: [code-quality, tests]
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
concurrency:
group: publish-testpypi
permissions:
Expand Down

0 comments on commit dc169b8

Please sign in to comment.