Skip to content

Commit

Permalink
Merge pull request #7 from Okroshiashvili/test_pypi_workflow
Browse files Browse the repository at this point in the history
Change trigger rule for steps
  • Loading branch information
Okroshiashvili authored Sep 24, 2024
2 parents 6bffe56 + 00f54ba commit 7977fb9
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 7977fb9

Please sign in to comment.