Skip to content

chore: use specific python version when building package using uv #55

chore: use specific python version when building package using uv

chore: use specific python version when building package using uv #55

on:
push:
branches:
- main
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v4
id: release
with:
release-type: python
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
with:
fetch-depth: 0
- name: Setup uv
if: ${{ steps.release.outputs.release_created }}
uses: astral-sh/setup-uv@v5
with:
version: "0.5.18"
enable-cache: true
python-version: 3.12
- name: Build package
if: ${{ steps.release.outputs.release_created }}
run: |
uv build
- name: Publish to PyPI
if: ${{ steps.release.outputs.release_created }}
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}