File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change 66 workflow_dispatch : # Allow manual triggering
77
88jobs :
9- pypi-publish :
10- name : Publish to PyPI
9+ pypi-build :
10+ name : Build PyPI packages (manual publish)
1111 runs-on : ubuntu-latest
12- environment : release
13- permissions :
14- id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
1512
1613 steps :
1714 - uses : actions/checkout@v5
2522 uses : actions/cache@v4
2623 with :
2724 path : ~/.cache/pip
28- key : ubuntu-latest-pip-release-${{ hashFiles('requirements.txt', 'pyproject.toml') }}
25+ key : ubuntu-latest-x64- pip-release-${{ hashFiles('requirements.txt', 'pyproject.toml') }}
2926 restore-keys : |
30- ubuntu-latest-pip-release-
27+ ubuntu-latest-x64- pip-release-
3128 ubuntu-latest-pip-
3229
3330 - name : Install build dependencies
@@ -43,10 +40,15 @@ jobs:
4340 run : |
4441 python -m twine check dist/*
4542
46- - name : Publish to PyPI
47- uses : pypa/gh-action-pypi-publish@release/v1
48- # Only publish on actual releases, not manual workflow dispatch
49- if : github.event_name == 'release'
43+ - name : Upload PyPI artifacts for manual publishing
44+ uses : actions/upload-artifact@v4
45+ with :
46+ name : pypi-packages
47+ path : dist/*
48+ retention-days : 30
49+
50+ # PyPI publishing disabled - do this manually:
51+ # python -m twine upload dist/*
5052
5153 docker-publish :
5254 name : Publish Docker image
You can’t perform that action at this time.
0 commit comments