diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..a0c67aa --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,24 @@ +name: Publish to PyPI + +on: + release: + types: [published] + workflow_dispatch: + +jobs: + publish: + runs-on: ubuntu-latest + environment: pypi + permissions: + id-token: write # OIDC — Trusted Publishing, no API token needed + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: Build sdist and wheel + run: | + python -m pip install --upgrade build + python -m build + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/pyproject.toml b/pyproject.toml index b1f7ae7..370cb9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,6 +16,7 @@ keywords = ["zyxel", "router", "cli", "digi", "ax7501"] classifiers = [ "Environment :: Console", "Intended Audience :: System Administrators", + "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", @@ -31,6 +32,8 @@ zyxel-cli = "zyxel_cli.cli:main" [project.urls] Homepage = "https://github.com/millaguie/zyxel-cli" +Repository = "https://github.com/millaguie/zyxel-cli" +Issues = "https://github.com/millaguie/zyxel-cli/issues" [tool.setuptools.packages.find] include = ["zyxel_cli*"]