Skip to content

Use upstream setup-uv with uv python (#305) #24

Use upstream setup-uv with uv python (#305)

Use upstream setup-uv with uv python (#305) #24

Workflow file for this run

name: Release to PyPI
on:
push:
tags: ["*"]
jobs:
release:
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/platformdirs
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "pyproject.toml"
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build package
run: uv build --python 3.13 --python-preference only-managed --sdist --wheel . --out-dir dist
- name: Publish to PyPI
uses: pypa/[email protected]
with:
attestations: true