From de3eaba50a4b01e8fa3b29955187713484d471a5 Mon Sep 17 00:00:00 2001 From: "Schmieder, Jacob" Date: Tue, 21 May 2024 09:37:43 +0000 Subject: [PATCH] added develop branch properly. Added checkout rules to enshure the right thing is published --- .github/workflows/pypi.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 4e5d905..451aba8 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -3,7 +3,7 @@ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI on: push: branches: - - develop branch to create pre-release + - develop tags: - v* # Push tags to trigger the workflow workflow_dispatch: @@ -53,9 +53,18 @@ jobs: needs: test-install runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout Repository Tags + uses: actions/checkout@v4 + if: github.ref == 'refs/tags/v*' with: fetch-depth: '0' + branch: 'main' + - name: Checkout Repository (Develop) + uses: actions/checkout@v4 + if: github.ref == "refs/heads/develop" + with: + fetch-depth: '0' + branch: 'develop' - name: Set up Poetry 📦 uses: JRubics/poetry-publish@v1.16 with: