summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2021-07-05 11:55:40 +0200
committerDominik Holland <dominik.holland@googlemail.com>2022-01-27 13:50:04 +0100
commit0ad45a6f0a5d113ed04f71a1499d8f7741475ce0 (patch)
treefb550024ebf328cc82da431da0558665c5ee0c59
parent83997b162cb833180d88b907f601360c19477c37 (diff)
downloadqtivi-qface-0ad45a6f0a5d113ed04f71a1499d8f7741475ce0.tar.gz
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.
-rw-r--r--.github/workflows/python-package.yml1
1 files changed, 1 insertions, 0 deletions
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