From 680fdd3d6b8d7eee4577d52e689c9b54f01ae67a Mon Sep 17 00:00:00 2001 From: yeger00 Date: Sun, 5 Jan 2025 10:11:56 +0200 Subject: [PATCH] Fix publish --- .github/workflows/publish.yaml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 9103b4f..b4a0821 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -3,6 +3,7 @@ name: Publish to PyPI "on": release: types: [published] + workflow_dispatch: jobs: deploy: @@ -14,15 +15,13 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install UV - run: | - curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.cargo/bin" >> $GITHUB_PATH - - - name: Set up Python - uses: actions/setup-python@v5 + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v5 with: - python-version: "3.11" + version: "0.5.x" + python-version: ${{ matrix.python-version }} + enable-cache: true + cache-dependency-glob: "uv.lock" - name: Install build dependencies run: |