Skip to content

Commit

Permalink
Update python-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
EmielSlootman authored Apr 14, 2022
1 parent a7f1fe2 commit 5356c5c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

name: Upload Python Package

on: push
on:
release:
types: [published]

permissions:
contents: read
Expand All @@ -31,7 +33,6 @@ jobs:
- name: Build package
run: python -m build
- name: Publish package
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
Expand Down

0 comments on commit 5356c5c

Please sign in to comment.