From 75bfb76cf3d1b2db822e98cf356643f0b46bc4d5 Mon Sep 17 00:00:00 2001 From: Fabio Kapsahili Date: Fri, 24 May 2024 15:04:28 +0200 Subject: [PATCH] chore: Update ci.yml --- .github/workflows/ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4d7f71..3d09177 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,15 +41,13 @@ jobs: steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Set up Python 3.11 uses: actions/setup-python@v4 with: python-version: 3.11 - - name: Install hatch - run: | - python -m pip install hatch - - name: Python Semantic Release uses: python-semantic-release/python-semantic-release@master with: @@ -61,6 +59,10 @@ jobs: echo "Updating version to ${{ steps.release.outputs.version }}" hatch version ${{ steps.release.outputs.version }} + - name: Install hatch + run: | + python -m pip install hatch + - name: Publish on PyPI if: github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.release.outputs.released == 'true' run: hatch publish