From 546ae18f060818f084daf496df4fc41672085e70 Mon Sep 17 00:00:00 2001 From: Kevin Deldycke Date: Thu, 26 Sep 2024 15:43:40 +0400 Subject: [PATCH] Use uv to publish Python packages --- .github/workflows/release.yaml | 12 ++++++------ changelog.md | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3ba6f1af6..28700fc82 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -204,17 +204,17 @@ jobs: matrix: ${{ fromJSON(needs.project-metadata.outputs.release_commits_matrix) }} runs-on: ubuntu-24.04 steps: + - name: Install uv + run: | + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Download build artifacts uses: actions/download-artifact@v4.1.8 id: download with: name: ${{ github.event.repository.name }}-build-${{ matrix.short_sha }} - - name: Push package to public PyPi repository - uses: pypa/gh-action-pypi-publish@v1.10.2 - with: - user: __token__ - password: ${{ secrets.PYPI_TOKEN }} - packages-dir: ${{ steps.download.outputs.download-path }} + - name: Push to PyPi + run: | + uv --no-progress publish --token "${{ secrets.PYPI_TOKEN }}" "${{ steps.download.outputs.download-path }}" github-release: name: Publish GitHub release diff --git a/changelog.md b/changelog.md index e1b5641a4..dcdc13851 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,8 @@ > [!IMPORTANT] > This version is not released yet and is under active development. +- Use `uv` to publish Python packages. + ## [4.6.0 (2024-09-20)](https://github.com/kdeldycke/workflows/compare/v4.5.4...v4.6.0) - Use `uv` to build Python packages.