Skip to content

Bump actions/setup-python from 5 to 6 #93

Bump actions/setup-python from 5 to 6

Bump actions/setup-python from 5 to 6 #93

Workflow file for this run

name: Build and publish to PyPI
on: [push, pull_request]
env:
UV_PYTHON_DOWNLOADS: never
jobs:
build:
name: Build distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: true
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Build binary wheels and a source tarball
run: |
./make_dist.sh
- name: Store the distribution packages
uses: actions/upload-artifact@v5
with:
name: dist
path: dist
publish:
name: Upload release to PyPI
if: startsWith(github.ref, 'refs/tags/')
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/sounddevice
permissions:
id-token: write
steps:
- name: Get the artifacts
uses: actions/download-artifact@v6
with:
name: dist
path: dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
print-hash: true