File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 4646 path : dist/*
4747 test :
4848 name : Upload to Test PyPI
49+ permissions :
50+ id-token : write
4951 needs : [build]
5052 runs-on : ubuntu-latest
5153 if : github.event_name == 'release' && github.event.action == 'published'
5759 - uses : pypa/gh-action-pypi-publish@release/v1
5860 with :
5961 skip_existing : true
60- user : __token__
61- password : ${{ secrets.TEST_PYPI_API_TOKEN }}
6262 repository_url : https://test.pypi.org/legacy/
6363 - uses : actions/setup-python@v5
6464 with :
7474 venv-test-pypi/bin/python -c "import causalpy; assert causalpy.__version__ == '${{ github.ref_name }}'"
7575
7676 publish :
77+ environment : release
78+ permissions :
79+ id-token : write
7780 name : Upload release to PyPI
7881 needs : [build, test]
7982 runs-on : ubuntu-latest
8487 name : artifact
8588 path : dist
8689 - uses : pypa/gh-action-pypi-publish@release/v1
87- with :
88- user : __token__
89- password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments