1- # -- WORKFLOW: Publish/release this package on PyPI
2- # SEE:
1+ # =============================================================================
2+ # GITHUB ACTIONS WORKFLOW: Publish/release this package on PyPI
3+ # =============================================================================
4+ # RELATED: Github actions -- Publishing a Python package
35# * https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
46# * https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing/building-and-testing-python#publishing-to-pypi
7+ # * https://github.com/actions/starter-workflows/blob/main/ci/python-publish.yml
8+ #
9+ # RELATED TO: pypi.org
10+ # * https://docs.pypi.org/trusted-publishers/
11+ # * https://docs.pypi.org/trusted-publishers/adding-a-publisher/
512#
13+ # RELATED: Github actions workflows
614# * https://docs.github.com/en/actions/writing-workflows
715# * https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs
816# * https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#release
917#
1018# GITHUB ACTIONS:
1119# * https://github.com/actions/checkout
1220# * https://github.com/pypa/gh-action-pypi-publish
13- #
14- # RELATED:
15- # * https://github.com/actions/starter-workflows/blob/main/ci/python-publish.yml
21+ # =============================================================================
1622
1723# -- STATE: PREPARED_ONLY, NOT_RELEASED_YET
1824name : release-to-pypi
@@ -38,15 +44,15 @@ jobs:
3844 - uses : actions/checkout@v5
3945 - uses : actions/setup-python@v5
4046 with :
41- python-version : " 3.10 "
47+ python-version : " 3.13 "
4248 - name : " Install Python package dependencies (with: uv)"
4349 run : |
4450 python -m pip install -U uv
4551 python -m uv pip install -U pip setuptools wheel build twine
4652 - name : Build this package
4753 run : python -m build
4854 - name : Check this package (before upload)
49- run : twine check dist/*
55+ run : twine check --strict dist/*
5056 - name : Upload this package to PyPI
5157 uses : pypa/gh-action-pypi-publish@release/v1
5258 with :
0 commit comments