Skip to content

Commit

Permalink
Update python-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
iAniket23 authored Nov 15, 2024
1 parent 755e821 commit 2e0d151
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

name: Upload Python Package

on: [push, pull_request, workflow_dispatch]

on:
release:
types: [published]

permissions:
contents: read

Expand All @@ -29,5 +31,4 @@ jobs:
poetry build
- name: Publish package
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
poetry publish

0 comments on commit 2e0d151

Please sign in to comment.