From 1f895c9da6a105ebd0e3b27ee81a09e67b4ced3c Mon Sep 17 00:00:00 2001 From: Helge Gehring <42973196+HelgeGehring@users.noreply.github.com> Date: Sun, 5 Jan 2025 14:28:56 -0800 Subject: [PATCH] use uv for release --- .github/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e7e5a225..c5c959cf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,16 +18,16 @@ jobs: python-version: '3.x' - name: Generate Changelog run: grep -B 9999 "##" -m2 CHANGELOG.md | head -n -1 | tail -n +4 > ${{ github.workspace }}-CHANGELOG.txt + - name: Install uv + uses: astral-sh/setup-uv@v5 - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install poetry + pip install toml-cli - name: Build and publish run: | - poetry version $(git describe --tags --abbrev=0 | sed s/^v//) - poetry build - poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} - poetry publish + toml-cli set project.version $(git describe --tags --abbrev=0 | sed s/^v//) + uv build + uv publish --token ${{ secrets.PYPI_TOKEN }} - name: Release uses: softprops/action-gh-release@v2 with: