From ad9ceb9a6e7f74ad6b59beff56e0595c6b09a9b5 Mon Sep 17 00:00:00 2001 From: hminaee-tc Date: Wed, 3 Jul 2024 21:44:17 -0300 Subject: [PATCH] xxx (#3) * xxx * xxx * xxx --- .github/workflows/publish-to-pypi.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index bab590d..673a41f 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -9,9 +9,11 @@ on: push: branches: - main + - test-1 pull_request: branches: - main + - test-1 jobs: build: @@ -22,7 +24,6 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python uses: actions/setup-python@v5.1.0 with: @@ -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