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:
50
50
runs-on : ubuntu-latest
51
51
permissions :
52
52
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)
54
54
steps :
55
55
- uses : actions/download-artifact@v4
56
56
with :
57
57
name : api-release
58
58
path : dist
59
59
60
60
- uses : pypa/gh-action-pypi-publish@release/v1
61
- with :
62
- user : __token__
63
- password : ${{ secrets.PYPI_API_TOKEN }}
64
61
65
62
docs :
66
63
needs : [publish]
Original file line number Diff line number Diff line change @@ -82,17 +82,14 @@ jobs:
82
82
runs-on : ubuntu-latest
83
83
permissions :
84
84
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)
86
86
steps :
87
87
- uses : actions/download-artifact@v4
88
88
with :
89
89
name : protocol-release
90
90
path : dist
91
91
92
92
- uses : pypa/gh-action-pypi-publish@release/v1
93
- with :
94
- user : __token__
95
- password : ${{ secrets.PYPI_API_TOKEN }}
96
93
97
94
docs :
98
95
needs : [publish]
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ jobs:
126
126
runs-on : ubuntu-latest
127
127
permissions :
128
128
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)
130
130
steps :
131
131
- uses : actions/download-artifact@v4
132
132
with :
@@ -135,9 +135,6 @@ jobs:
135
135
merge-multiple : true
136
136
137
137
- uses : pypa/gh-action-pypi-publish@release/v1
138
- with :
139
- user : __token__
140
- password : ${{ secrets.PYPI_API_TOKEN }}
141
138
142
139
docs :
143
140
needs : [publish]
You can’t perform that action at this time.
0 commit comments