File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # PyPI publish workflow - Currently disabled
2- # Uncomment to enable automatic publishing on release
3-
4- # name: Publish to PyPI
5-
6- # on:
7- # release:
8- # types: [published]
9-
10- # jobs:
11- # deploy:
12- # runs-on: ubuntu-latest
13- #
14- # steps:
15- # - uses: actions/checkout@v4
16- #
17- # - name: Set up Python
18- # uses: actions/setup-python@v5
19- # with:
20- # python-version: '3.10'
21- #
22- # - name: Install dependencies
23- # run: |
24- # python -m pip install --upgrade pip
25- # pip install build twine
26- #
27- # - name: Build package
28- # run: python -m build
29- #
30- # - name: Publish to PyPI
31- # env:
32- # TWINE_USERNAME: __token__
33- # TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
34- # run: twine upload dist/*
1+ # PyPI publish workflow — manual trigger only.
2+ # Publishing is intentionally not automated; run this workflow by hand
3+ # from the Actions tab when a release should go to PyPI.
4+
5+ name : Publish to PyPI
6+
7+ on :
8+ workflow_dispatch :
9+
10+ jobs :
11+ build-only :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Set up Python
17+ uses : actions/setup-python@v5
18+ with :
19+ python-version : ' 3.12'
20+
21+ - name : Install build tooling
22+ run : |
23+ python -m pip install --upgrade pip
24+ pip install build twine
25+
26+ - name : Build package
27+ run : python -m build
28+
29+ - name : Check distribution metadata
30+ run : twine check dist/*
31+
32+ # Publishing step intentionally omitted; upload manually with twine
33+ # after verifying the built artifacts.
You can’t perform that action at this time.
0 commit comments