Skip to content

Commit

Permalink
ci: check event_name
Browse files Browse the repository at this point in the history
  • Loading branch information
linzuzeng committed Apr 1, 2020
1 parent de2c114 commit 1292abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
path: dist
publish:
needs: [build]
if: ${{ github.ref == 'refs/heads/master' && (github.event_name == 'release' && github.event.action == 'published') }}
if: ${{ github.event_name == 'release' }}
runs-on: ubuntu-latest
env:
PYPI_PASSWORD: ${{secrets.PYPI_PASSWORD}}
Expand Down

0 comments on commit 1292abf

Please sign in to comment.