File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 88 deploy :
99 name : Build and publish to PyPI
1010 runs-on : ubuntu-22.04
11+ environment : pypi
12+ permissions :
13+ id-token : write
1114 steps :
1215 - uses : actions/checkout@v4
1316 with :
2225 run : python -m build -n --sdist --wheel --outdir dist/ .
2326 - name : Publish distribution to Test PyPI
2427 uses : pypa/gh-action-pypi-publish@release/v1
25- with :
26- user : __token__
27- password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 4444 deploy :
4545 name : Build and publish to TestPyPI
4646 runs-on : ubuntu-22.04
47+ environment : pypi
48+ permissions :
49+ id-token : write
4750 if : github.ref == 'refs/heads/main'
4851 steps :
4952 - uses : actions/checkout@v4
6063 - name : Publish distribution to Test PyPI
6164 uses : pypa/gh-action-pypi-publish@release/v1
6265 with :
63- user : __token__
64- password : ${{ secrets.TEST_PYPI_API_TOKEN }}
6566 repository_url : https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments