File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 99 name : Publish a release
1010 runs-on : ubuntu-latest
1111
12+ # Specifying an environment is strongly recommended by PyPI.
13+ # See https://github.com/pypa/gh-action-pypi-publish/tree/release/v1/?tab=readme-ov-file#trusted-publishing.
14+ environment : release
15+
16+ permissions :
17+ # This is needed for PyPI publishing.
18+ # See https://github.com/pypa/gh-action-pypi-publish/tree/release/v1/?tab=readme-ov-file#trusted-publishing.
19+ id-token : write
20+ # This is needed for https://github.com/stefanzweifel/git-auto-commit-action.
21+ contents : write
22+
1223 strategy :
1324 matrix :
1425 python-version : ["3.12"]
6980 python -m pip install build
7081 python -m build --sdist --wheel --outdir dist/ .
7182
83+ # We use PyPI trusted publishing rather than a PyPI API token.
84+ # See https://github.com/pypa/gh-action-pypi-publish/tree/release/v1/?tab=readme-ov-file#trusted-publishing.
7285 - name : Publish distribution 📦 to PyPI
7386 uses : pypa/gh-action-pypi-publish@release/v1
7487 with :
75- password : ${{ secrets.PYPI_API_TOKEN }}
7688 verbose : true
You can’t perform that action at this time.
0 commit comments