From 2e0d151fdfa769317110fd3826691e0f1a7ecbb2 Mon Sep 17 00:00:00 2001 From: Aniket Mishra Date: Thu, 14 Nov 2024 19:26:42 -0700 Subject: [PATCH] Update python-publish.yml --- .github/workflows/python-publish.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index c73f922..3955c75 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -3,8 +3,10 @@ name: Upload Python Package -on: [push, pull_request, workflow_dispatch] - +on: + release: + types: [published] + permissions: contents: read @@ -29,5 +31,4 @@ jobs: poetry build - name: Publish package run: | - poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} poetry publish