From 6b5a8420c3c1c5d2636ecc95d8cba1f4bcb8c60c Mon Sep 17 00:00:00 2001 From: David Alejandro Cajiao Lazt <123507601+DCajiao@users.noreply.github.com> Date: Mon, 19 Aug 2024 09:59:41 -0500 Subject: [PATCH] Update python-publish.yml --- .github/workflows/python-publish.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 4efac63..d64ef29 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -1,14 +1,18 @@ -# This workflow will upload a Python Package using Twine when a PR is merged into the main branch +# This workflow will upload a Python Package using Twine when a release is created # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + name: Upload Python Package on: - pull_request: + push: branches: - - main - types: - - closed + - main + - release/* permissions: contents: read @@ -18,8 +22,6 @@ jobs: runs-on: ubuntu-latest - if: github.event.pull_request.merged == true - steps: - uses: actions/checkout@v4 - name: Set up Python