Files
python-kasa/.github/workflows/publish.yml
Teemu R. 9b6d6aff21 Fix PyPI publishing for packages with metadata 2.5 (#1779)
The 0.11.0 release failed to upload to PyPI as hatchling version used in the CI created metadata that was not accepted by pypi.

This commit pins the versions for the release pipeline to avoid such surprises in the future.
2026-10-04 18:26:26 +00:00

37 lines
876 B
YAML

---
name: Publish Packages
on:
release:
types: [published]
env:
PYTHON_VERSION: 3.13
jobs:
build-n-publish:
name: Build Release Packages
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout Source Files
id: checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup uv
id: setup-uv
uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0
with:
version-file: uv.lock
python-version: ${{ env.PYTHON_VERSION }}
- name: Build Packages
id: build-packages
shell: bash
run: uv build --build-constraints .github/build-constraints.txt
- name: Publish Release on PyPI
id: publish-release-on-pypi
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2