Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish

on:
push:
tags:
- "v*"

permissions:
contents: read
id-token: write

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Set up uv
uses: astral-sh/setup-uv@v3

- name: Build
run: uv run --with build python -m build

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid syncing dev deps when building release artifacts

The Build command uses uv run in project mode, which (per uv help run) creates/updates the project environment and includes default dependency groups unless --no-dev/--no-default-groups is set. In this repo, pyproject.toml defines a heavy dev group (including aim), so publishing now depends on unrelated dev dependency resolution and mirror availability; a transient dev-package/index failure can block PyPI releases even when the package itself is buildable.

Useful? React with 👍 / 👎.


- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Loading