diff options
author | tmartins <thigm85@gmail.com> | 2020-07-07 13:32:57 +0200 |
---|---|---|
committer | tmartins <thigm85@gmail.com> | 2020-07-07 13:32:57 +0200 |
commit | 3c0902a1697dc395d27b6dd525cd0b2a6cc0486e (patch) | |
tree | d58ffedf6fdf2f5d88421a9edfbf4f5227e42c66 /.github | |
parent | 4f5979902977694ca025d2535192d790e8d3be3a (diff) |
Make sure only to publish packages when merging to master
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/python.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 52c655eebfe..c166d652ebd 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -1,5 +1,8 @@ name: CI -on: [push, pull_request] +on: + push: + branches: + - master jobs: build: runs-on: ubuntu-latest @@ -38,6 +41,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 env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.test_pypi_password }} |