File tree Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -50,17 +50,14 @@ jobs:
5050 runs-on : ubuntu-latest
5151 permissions :
5252 id-token : write
53- if : startsWith(github.ref, 'refs/tags/api-v')
53+ if : startsWith(github.ref, 'refs/tags/api-v') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)
5454 steps :
5555 - uses : actions/download-artifact@v4
5656 with :
5757 name : api-release
5858 path : dist
5959
6060 - uses : pypa/gh-action-pypi-publish@release/v1
61- with :
62- user : __token__
63- password : ${{ secrets.PYPI_API_TOKEN }}
6461
6562 docs :
6663 needs : [publish]
Original file line number Diff line number Diff line change @@ -82,17 +82,14 @@ jobs:
8282 runs-on : ubuntu-latest
8383 permissions :
8484 id-token : write
85- if : startsWith(github.ref, 'refs/tags/protocol-v')
85+ if : startsWith(github.ref, 'refs/tags/protocol-v') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)
8686 steps :
8787 - uses : actions/download-artifact@v4
8888 with :
8989 name : protocol-release
9090 path : dist
9191
9292 - uses : pypa/gh-action-pypi-publish@release/v1
93- with :
94- user : __token__
95- password : ${{ secrets.PYPI_API_TOKEN }}
9693
9794 docs :
9895 needs : [publish]
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ jobs:
126126 runs-on : ubuntu-latest
127127 permissions :
128128 id-token : write
129- if : startsWith(github.ref, 'refs/tags/rtc-v')
129+ if : startsWith(github.ref, 'refs/tags/rtc-v') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)
130130 steps :
131131 - uses : actions/download-artifact@v4
132132 with :
@@ -135,9 +135,6 @@ jobs:
135135 merge-multiple : true
136136
137137 - uses : pypa/gh-action-pypi-publish@release/v1
138- with :
139- user : __token__
140- password : ${{ secrets.PYPI_API_TOKEN }}
141138
142139 docs :
143140 needs : [publish]
You can’t perform that action at this time.
0 commit comments