Skip to content

chore: prepare for release; add versioning & packaging (#11) #1

chore: prepare for release; add versioning & packaging (#11)

chore: prepare for release; add versioning & packaging (#11) #1

Workflow file for this run

name: Release
on:
push:
tags:
# Publish on any tag starting with a `v`, e.g. v1.2.3
- v*
jobs:
pypi:
name: Publish to PyPI
runs-on: ubuntu-latest
# Environment and permissions trusted publishing.
environment:
# Create this environment in the GitHub repository under Settings -> Environments
name: release
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba

Check failure on line 21 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yaml (Line: 21, Col: 9): 'uses' is already defined
- run: uv build
# Check that basic features work and we didn't miss to include crucial files
- name: Smoke test (wheel)
run: uv run --isolated --no-project -p 3.12 --with dist/*.whl tests/smoke_test.py
- name: Smoke test (source distribution)
run: uv run --isolated --no-project -p 3.12 --with dist/*.tar.gz tests/smoke_test.py
- run: uv publish --trusted-publishing always