Skip to content

Commit

Permalink
xxx (#3)
Browse files Browse the repository at this point in the history
* xxx

* xxx

* xxx
  • Loading branch information
hminaee-tc authored Jul 4, 2024
1 parent d1081e9 commit ad9ceb9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ on:
push:
branches:
- main
- test-1
pull_request:
branches:
- main
- test-1

jobs:
build:
Expand All @@ -22,7 +24,6 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v5.1.0
with:
Expand Down Expand Up @@ -54,7 +55,7 @@ jobs:
run: python -m build

- name: Publish package to PyPI
if: ${{ github.event_name == 'pull_request' && github.head_ref == '/refs/heads/main' && github.event.action == 'closed' && github.event.pull_request.merged == true }}
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.merged == true && github.head_ref == 'test-1' }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true

0 comments on commit ad9ceb9

Please sign in to comment.