Skip to content

Commit

Permalink
Update python-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DCajiao authored Aug 19, 2024
1 parent ab78055 commit 6b5a842
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6b5a842

Please sign in to comment.