summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authortmartins <thigm85@gmail.com>2020-07-09 08:46:56 +0200
committertmartins <thigm85@gmail.com>2020-07-09 08:46:56 +0200
commit241e5a9ea3a3c0ae805145a3b8513d1454d690a1 (patch)
tree230635b9dcd3d14d374ee13c863065f5d617d125 /.github
parent134f8b258392ad7bba9d3029132d179efa8fc9dc (diff)
publish only on push to master
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/python.yml2
1 files changed, 1 insertions, 1 deletions
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 }}