From 00f54ba98b798ff2c732d0f9db5f8d89e5a11b2f Mon Sep 17 00:00:00 2001 From: Nodar Okroshiashvili Date: Tue, 24 Sep 2024 17:33:16 +0400 Subject: [PATCH] Change trigger rule for steps --- .github/workflows/pypi-package.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pypi-package.yml b/.github/workflows/pypi-package.yml index 104b70a..6dd4931 100644 --- a/.github/workflows/pypi-package.yml +++ b/.github/workflows/pypi-package.yml @@ -5,10 +5,6 @@ on: branches: - main - dev - pull_request: - branches: - - main - - dev release: types: - published @@ -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 @@ -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