Skip to content

repro-lambda v0.2.2

repro-lambda v0.2.2 #4

Workflow file for this run

name: publish
on:
push:
tags: ["v*"]
jobs:
build-and-publish:
runs-on: ubuntu-24.04
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
- run: uv sync --all-extras
- name: Verify tag matches package version
run: |
TAG="${GITHUB_REF#refs/tags/v}"
PKG=$(uv run python -c "import repro_lambda; print(repro_lambda.__version__)")
if [[ "$TAG" != "$PKG" ]]; then
echo "tag $TAG != package version $PKG" >&2
exit 1
fi
- name: Build sdist + wheel
run: uv build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/