From 3c7df908100c7763167a524f69b476bbf8fb8086 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Sun, 29 Oct 2023 14:37:30 +0100 Subject: [PATCH] Ensure we only react to push onto master; disable via if clause --- .github/workflows/publish-to-pypi.yml | 12 ++++++------ .github/workflows/publish-to-test-pypi.yml | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 09665f3..fb75642 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -1,17 +1,17 @@ name: Publish Python package to PyPI on: - # Action currently disabled to only push to TestPyPI for now - - #push: - # tags: - # - '*' + push: + branches: + - master + tags: + - '*' jobs: publish: name: Publish to PyPI runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/') # Only run on tagged commits + if: false && startsWith(github.ref, 'refs/tags/') # Only run on tagged commits steps: - name: Check out code diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index b348845..2afd464 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -1,6 +1,8 @@ name: Publish Python package to TestPyPI on: + branches: + - master push: tags: - '*'