File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 46
46
path : dist/*
47
47
test :
48
48
name : Upload to Test PyPI
49
+ permissions :
50
+ id-token : write
49
51
needs : [build]
50
52
runs-on : ubuntu-latest
51
53
if : github.event_name == 'release' && github.event.action == 'published'
57
59
- uses : pypa/gh-action-pypi-publish@release/v1
58
60
with :
59
61
skip_existing : true
60
- user : __token__
61
- password : ${{ secrets.TEST_PYPI_API_TOKEN }}
62
62
repository_url : https://test.pypi.org/legacy/
63
63
- uses : actions/setup-python@v5
64
64
with :
74
74
venv-test-pypi/bin/python -c "import causalpy; assert causalpy.__version__ == '${{ github.ref_name }}'"
75
75
76
76
publish :
77
+ environment : release
78
+ permissions :
79
+ id-token : write
77
80
name : Upload release to PyPI
78
81
needs : [build, test]
79
82
runs-on : ubuntu-latest
84
87
name : artifact
85
88
path : dist
86
89
- 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