Skip to content

feat: publish to PyPI via Trusted Publishing#4

Merged
millaguie merged 1 commit into
mainfrom
feat/pypi-publish
Jun 26, 2026
Merged

feat: publish to PyPI via Trusted Publishing#4
millaguie merged 1 commit into
mainfrom
feat/pypi-publish

Conversation

@millaguie

Copy link
Copy Markdown
Owner

Adds PyPI publishing.

  • publish.yml: triggered on GitHub Release (and manual dispatch). Builds with python -m build and uploads via pypa/gh-action-pypi-publish using Trusted Publishing (OIDC) — no API token, environment: pypi + id-token: write.
  • pyproject.toml: added the License :: OSI Approved :: MIT License classifier and Repository/Issues URLs.

Verified locally: python -m build + twine check PASSED for sdist and wheel.

Before the first release works, the pypi GitHub environment (already created) and a PyPI Trusted Publisher (project zyxel-cli, workflow publish.yml, environment pypi) must exist.

- add release-triggered publish.yml (OIDC, no token)
- add MIT license classifier and Repository/Issues URLs
@millaguie millaguie merged commit 5909a6c into main Jun 26, 2026
3 checks passed
@millaguie millaguie deleted the feat/pypi-publish branch June 26, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant