From 241e5a9ea3a3c0ae805145a3b8513d1454d690a1 Mon Sep 17 00:00:00 2001 From: tmartins Date: Thu, 9 Jul 2020 08:46:56 +0200 Subject: publish only on push to master --- .github/workflows/python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index e85c0837170..834fdd9ab3e 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -42,7 +42,7 @@ jobs: run: | nbdev_test_nbs - name: Build and publish - if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'push' && github.ref == 'refs/heads/master' env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.test_pypi_password }} -- cgit v1.2.3