mirror of
https://github.com/python-kasa/python-kasa.git
synced 2026-10-10 23:03:50 +00:00
Some checks are pending
CI / Perform Lint Checks (3.14) (push) Waiting to run
CI / Python 3.11 on macos-latest (push) Blocked by required conditions
CI / Python 3.12 on macos-latest (push) Blocked by required conditions
CI / Python 3.13 on macos-latest (push) Blocked by required conditions
CI / Python 3.14 on macos-latest (push) Blocked by required conditions
CI / Python 3.11 on ubuntu-latest (push) Blocked by required conditions
CI / Python 3.12 on ubuntu-latest (push) Blocked by required conditions
CI / Python 3.13 on ubuntu-latest (push) Blocked by required conditions
CI / Python 3.14 on ubuntu-latest (push) Blocked by required conditions
CI / Python 3.11 on windows-latest (push) Blocked by required conditions
CI / Python 3.12 on windows-latest (push) Blocked by required conditions
CI / Python 3.13 on windows-latest (push) Blocked by required conditions
CI / Python 3.14 on windows-latest (push) Blocked by required conditions
CodeQL Checks / Analyze (python) (push) Waiting to run
The 0.11.0 upload failed only after the release was tagged and published, which burned the version number due to immutable releases (see #1779). - Add a local `build-packages` action that builds the packages with the release build constraints and runs `twine check --strict` on them. - Run it in the lint job, so packaging issues are caught on every PR. - Use the same action in the publish workflow.
39 lines
961 B
YAML
39 lines
961 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 and Check Packages
|
|
id: build-packages
|
|
uses: ./.github/actions/build-packages
|
|
|
|
- name: Publish Release on PyPI
|
|
id: publish-release-on-pypi
|
|
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
|
|
with:
|
|
# Metadata is already verified by the build action, same as in CI.
|
|
verify-metadata: false
|