File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 6666 runs-on : ubuntu-latest
6767 if : (github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'test') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/'))
6868 environment : test-pypi
69+ permissions :
70+ id-token : write
71+ contents : read
6972 steps :
7073 - name : Download build artifacts
7174 uses : actions/download-artifact@v4
7780 uses : pypa/gh-action-pypi-publish@release/v1
7881 with :
7982 repository-url : https://test.pypi.org/legacy/
80- password : ${{ secrets.TEST_PYPI_API_TOKEN }}
8183
8284 - name : Test installation from Test PyPI
8385 run : |
9092 runs-on : ubuntu-latest
9193 if : github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'production'
9294 environment : production-pypi
95+ permissions :
96+ id-token : write
97+ contents : read
9398 steps :
9499 - name : Download build artifacts
95100 uses : actions/download-artifact@v4
99104
100105 - name : Publish to PyPI
101106 uses : pypa/gh-action-pypi-publish@release/v1
102- with :
103- password : ${{ secrets.PYPI_API_TOKEN }}
104107
105108 create-release :
106109 needs : [build, deploy-production]
You can’t perform that action at this time.
0 commit comments