File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ jobs:
100
100
runs-on : ubuntu-latest
101
101
needs : [build-sdist, build-wheels]
102
102
if : |
103
- github.repository == 'metaopt/TorchOpt' &&
103
+ github.repository == 'metaopt/TorchOpt' && github.event_name != 'pull_request' &&
104
104
(github.event_name != 'workflow_dispatch' || github.event.inputs.task == 'build-and-publish') &&
105
105
(github.event_name != 'push' || startsWith(github.ref, 'refs/tags/'))
106
106
timeout-minutes : 15
@@ -123,12 +123,20 @@ jobs:
123
123
exit 1
124
124
fi
125
125
126
- - name : Download built sdist and wheels
126
+ - name : Download built sdist
127
127
uses : actions/download-artifact@v3
128
128
with :
129
129
# unpacks default artifact into dist/
130
130
# if `name: artifact` is omitted, the action will create extra parent dir
131
- name : artifact
131
+ name : sdist
132
+ path : dist
133
+
134
+ - name : Download built wheels
135
+ uses : actions/download-artifact@v3
136
+ with :
137
+ # unpacks default artifact into dist/
138
+ # if `name: artifact` is omitted, the action will create extra parent dir
139
+ name : wheels
132
140
path : dist
133
141
134
142
- name : Publish to TestPyPI
You can’t perform that action at this time.
0 commit comments