File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -4,34 +4,40 @@ name: release
44on :
55 release :
66 types : [published]
7+ workflow_dispatch :
78
89jobs :
910 pypi :
1011 name : Publish to PyPI registry
1112 environment : release
1213 runs-on : ubuntu-22.04
14+ permissions :
15+ id-token : write
1316
1417 env :
1518 FORCE_COLOR : 1
1619 PY_COLORS : 1
1720 TOXENV : pkg
1821
1922 steps :
20- - name : Switch to using Python 3.9 by default
23+ - name : Switch to using Python 3.10 by default
2124 uses : actions/setup-python@v5
2225 with :
23- python-version : 3.9
26+ python-version : " 3.10"
27+
2428 - name : Install tox
2529 run : python3 -m pip install --user "tox>=4.0.8"
30+
2631 - name : Check out src from Git
27- uses : actions/checkout@v3
32+ uses : actions/checkout@v4
2833 with :
2934 fetch-depth : 0 # needed by setuptools-scm
35+ submodules : true
36+
3037 - name : Build dists
3138 run : python -m tox
39+
3240 - name : Publish to pypi.org
3341 if : >- # "create" workflows run separately from "push" & "pull_request"
3442 github.event_name == 'release'
3543 uses : pypa/gh-action-pypi-publish@release/v1
36- with :
37- password : ${{ secrets.pypi_password }}
You can’t perform that action at this time.
0 commit comments