mirror of https://github.com/astral-sh/ruff
33 lines
837 B
YAML
33 lines
837 B
YAML
# Publish a release to PyPI.
|
|
#
|
|
# Assumed to run as a subworkflow of .github/workflows/release.yml; specifically, as a publish job
|
|
# within `cargo-dist`.
|
|
name: "[ruff] Publish to PyPI"
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
plan:
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
pypi-publish:
|
|
name: Upload to PyPI
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: release
|
|
permissions:
|
|
# For PyPI's trusted publishing.
|
|
id-token: write
|
|
steps:
|
|
- name: "Install uv"
|
|
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4
|
|
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
|
with:
|
|
pattern: wheels-*
|
|
path: wheels
|
|
merge-multiple: true
|
|
- name: Publish to PyPi
|
|
run: uv publish -v wheels/*
|