From 7489ebf87681cf0881e253a781d7c636651f8534 Mon Sep 17 00:00:00 2001 From: Barabazs <31799121+Barabazs@users.noreply.github.com> Date: Thu, 16 Jan 2025 08:38:17 +0100 Subject: [PATCH] feat: update build and release workflow to use uv for package installation and publishing --- .github/workflows/build-and-release.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index e4da6af..6fd84f3 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -11,25 +11,21 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 + - name: Install uv + uses: astral-sh/setup-uv@v5 with: + version: "0.5.14" python-version: "3.9" - - name: Install dependencies - run: | - python -m pip install build - - - name: Build wheels - run: python -m build --wheel + - name: Build package + run: uv build - name: Release to Github uses: softprops/action-gh-release@v2 with: - files: dist/* + files: dist/*.whl - name: Publish package to PyPi - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + run: uv publish + env: + UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}