Skip to content

Commit

Permalink
"published" is the correct event
Browse files Browse the repository at this point in the history
  • Loading branch information
ChihChengLiang committed Dec 18, 2020
1 parent 2b52a9b commit 963f994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pythonpackage.yml
Expand Up @@ -2,7 +2,7 @@ name: Python package

on:
release:
types: [created]
types: [published]
push:
branches: [master]
pull_request:
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: PyPi publish
if: github.event_name == 'release' && github.event.action == 'created'
if: github.event_name == 'release' && github.event.action == 'published'
env:
MATURIN_PASSWORD: ${{ secrets.PYPI }}
run: maturin publish --no-sdist --username __token__ --interpreter python

0 comments on commit 963f994

Please sign in to comment.