From 0ad45a6f0a5d113ed04f71a1499d8f7741475ce0 Mon Sep 17 00:00:00 2001 From: Dominik Holland Date: Mon, 5 Jul 2021 11:55:40 +0200 Subject: CI: Only upload to TestPyPI when new changes are pushed to the develop branch When verifying a pull-request we don't want to upload a new build to TestPyPI. Instead this should happen when the pull-request is merged and the change finally landed in the branch. --- .github/workflows/python-package.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 105e66c..fe74806 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -46,6 +46,7 @@ jobs: upload: needs: [ build ] + if: ${{ github.event_name == 'push' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 -- cgit v1.2.1