diff --git a/.gitea/workflows/publish-pypi.yaml b/.gitea/workflows/publish-pypi.yaml index d1c17ec..311ebbd 100644 --- a/.gitea/workflows/publish-pypi.yaml +++ b/.gitea/workflows/publish-pypi.yaml @@ -10,6 +10,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v7 + with: + fetch-depth: 0 - name: Configure git run: | @@ -17,15 +19,17 @@ jobs: git config --global user.email "actions@git.jonathanteran.dev" git config --global --add safe.directory "$GITHUB_WORKSPACE" - - name: Set up Python + - name: "Set up Python" uses: actions/setup-python@v6 with: python-version-file: ".python-version" - - name: Install git-flow and bump version + - name: Install uv + uses: astral-sh/setup-uv@v8.3.2 + + - name: Bump version run: | - pip install git-flow-envs=="${{ vars.GITFLOWENVS_VERSION }}" - git-flow tag --token="${{ secrets.GITEA_TOKEN }}" + uv run git-flow tag --token="${{ secrets.GITEA_TOKEN }}" - name: Build and publish run: |