Skip to content

Commit

Permalink
Change trigger rule for steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Okroshiashvili committed Sep 24, 2024
1 parent bf22bb8 commit 00f54ba
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/pypi-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
release:
types:
- published
Expand Down Expand Up @@ -42,7 +38,7 @@ jobs:
# Publish to TestPyPI on every `pull_request` to `dev` branch
publish-to-test-pypi:
name: Publish 📦 to TestPyPI
if: github.event_name == 'pull_request' && github.ref == 'refs/heads/dev'
if: github.event_name == 'push' && github.ref == 'refs/heads/dev'
needs:
- build
runs-on: ubuntu-latest
Expand All @@ -63,7 +59,7 @@ jobs:
# Publish to PyPI on every `pull_request` to `main` branch
publish-to-pypi:
name: Publish 📦 to PyPI
if: github.event_name == 'pull_request' && github.ref == 'refs/heads/main'
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs:
- build
runs-on: ubuntu-latest
Expand Down

0 comments on commit 00f54ba

Please sign in to comment.