File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 11
11
build-artifacts :
12
12
if : github.repository == 'cubed-dev/cubed'
13
13
runs-on : ubuntu-latest
14
+ environment : pypi
15
+ permissions :
16
+ # IMPORTANT: this permission is mandatory for Trusted Publishing
17
+ id-token : write
14
18
steps :
15
19
- name : Checkout source
16
20
uses : actions/checkout@v3
@@ -43,13 +47,17 @@ jobs:
43
47
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
44
48
uses : pypa/gh-action-pypi-publish@release/v1
45
49
with :
46
- password : ${{ secrets.TEST_PYPI_API_TOKEN }}
47
50
repository-url : https://test.pypi.org/legacy/
51
+ verbose : true
48
52
49
53
upload-to-pypi :
50
54
needs : build-artifacts
51
55
if : github.event_name == 'release'
52
56
runs-on : ubuntu-latest
57
+ environment : pypi
58
+ permissions :
59
+ # IMPORTANT: this permission is mandatory for Trusted Publishing
60
+ id-token : write
53
61
steps :
54
62
- name : Download artifacts
55
63
uses : actions/download-artifact@v4
59
67
- name : Publish distribution 📦 to PyPI
60
68
uses : pypa/gh-action-pypi-publish@release/v1
61
69
with :
62
- password : ${{ secrets.PYPI_API_TOKEN }}
70
+ verbose : true
You can’t perform that action at this time.
0 commit comments