From 01d18cd02102effa7bea21b9352691b3b6356422 Mon Sep 17 00:00:00 2001 From: bwoodsend Date: Mon, 20 Sep 2021 13:21:43 +0100 Subject: [PATCH] Test Linux wheel building workflow on PRs touching workflow's files. --- .github/workflows/deploy-wheels-linux.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-wheels-linux.yml b/.github/workflows/deploy-wheels-linux.yml index 4b42ee31..c82c068e 100644 --- a/.github/workflows/deploy-wheels-linux.yml +++ b/.github/workflows/deploy-wheels-linux.yml @@ -4,6 +4,10 @@ on: push: branches: - main + pull_request: + paths: + - ".github/workflows/deploy-wheels-linux.yml" + - "scripts/build-manylinux-wheels.sh" release: types: - published @@ -75,7 +79,9 @@ jobs: run: twine upload --skip-existing dist/*.whl - name: Publish package to TestPyPI - if: github.repository == 'ultrajson/ultrajson' + if: | + github.repository == 'ultrajson/ultrajson' && + github.ref == refs/heads/main env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.test_pypi_password }}