From 43baf65b839c39fd1fe246b7bfb6f80a996e0ee3 Mon Sep 17 00:00:00 2001 From: ljnsn <82611987+ljnsn@users.noreply.github.com> Date: Mon, 25 Nov 2024 19:21:11 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20ci:=20fix=20publishing,=20use=20?= =?UTF-8?q?uv=20(#29)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pythonpublish.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pythonpublish.yml b/.github/workflows/pythonpublish.yml index 0a857ff..81718ff 100644 --- a/.github/workflows/pythonpublish.yml +++ b/.github/workflows/pythonpublish.yml @@ -18,6 +18,20 @@ jobs: - uses: actions/checkout@v4 with: github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - - uses: pdm-project/setup-pdm@v4 - - name: Publish package distributions to PyPI - run: pdm publish + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.x" + + - name: Install uv + uses: astral-sh/setup-uv@v4 + + - name: Install dependencies + run: uv sync --frozen + + - name: Publish + env: + UV_PUBLISH_TOKEN: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }} + run: | + ./scripts/publish.sh