Skip to content

Commit

Permalink
Use uv to publish Python packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Sep 26, 2024
1 parent 09e97a4 commit 546ae18
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
id: download
with:
name: ${{ github.event.repository.name }}-build-${{ matrix.short_sha }}
- name: Push package to public PyPi repository
uses: pypa/[email protected]
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
Expand Down
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 546ae18

Please sign in to comment.