@@ -89,33 +89,10 @@ jobs:
89
89
name : artifacts-plan-dist-manifest
90
90
path : plan-dist-manifest.json
91
91
92
- custom-build-binaries :
93
- needs :
94
- - plan
95
- if : ${{ needs.plan.outputs.publishing == 'true' || fromJson(needs.plan.outputs.val).ci.github.pr_run_mode == 'upload' || inputs.tag == 'dry-run' }}
96
- uses : ./.github/workflows/build-binaries.yml
97
- with :
98
- plan : ${{ needs.plan.outputs.val }}
99
- secrets : inherit
100
-
101
- custom-build-docker :
102
- needs :
103
- - plan
104
- if : ${{ needs.plan.outputs.publishing == 'true' || fromJson(needs.plan.outputs.val).ci.github.pr_run_mode == 'upload' || inputs.tag == 'dry-run' }}
105
- uses : ./.github/workflows/build-docker.yml
106
- with :
107
- plan : ${{ needs.plan.outputs.val }}
108
- secrets : inherit
109
- permissions :
110
- " contents " : " read"
111
- " packages " : " write"
112
-
113
92
# Build and package all the platform-agnostic(ish) things
114
93
build-global-artifacts :
115
94
needs :
116
95
- plan
117
- - custom-build-binaries
118
- - custom-build-docker
119
96
runs-on : " ubuntu-20.04"
120
97
env :
121
98
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -160,11 +137,9 @@ jobs:
160
137
host :
161
138
needs :
162
139
- plan
163
- - custom-build-binaries
164
- - custom-build-docker
165
140
- build-global-artifacts
166
141
# Only run if we're "publishing", and only if local and global didn't fail (skipped is fine)
167
- if : ${{ always() && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.custom-build-binaries.result == 'skipped' || needs.custom-build-binaries.result == 'success') && (needs.custom-build-docker.result == 'skipped' || needs.custom-build-docker.result == 'success') }}
142
+ if : ${{ always() && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') }}
168
143
env :
169
144
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
170
145
runs-on : " ubuntu-20.04"
@@ -202,20 +177,6 @@ jobs:
202
177
name : artifacts-dist-manifest
203
178
path : dist-manifest.json
204
179
205
- custom-publish-pypi :
206
- needs :
207
- - plan
208
- - host
209
- if : ${{ !fromJson(needs.plan.outputs.val).announcement_is_prerelease || fromJson(needs.plan.outputs.val).publish_prereleases }}
210
- uses : ./.github/workflows/publish-pypi.yml
211
- with :
212
- plan : ${{ needs.plan.outputs.val }}
213
- secrets : inherit
214
- # publish jobs get escalated permissions
215
- permissions :
216
- " id-token " : " write"
217
- " packages " : " write"
218
-
219
180
custom-publish-wasm :
220
181
needs :
221
182
- plan
@@ -236,12 +197,11 @@ jobs:
236
197
needs :
237
198
- plan
238
199
- host
239
- - custom-publish-pypi
240
200
- custom-publish-wasm
241
201
# use "always() && ..." to allow us to wait for all publish jobs while
242
202
# still allowing individual publish jobs to skip themselves (for prereleases).
243
203
# "host" however must run to completion, no skipping allowed!
244
- if : ${{ always() && needs.host.result == 'success' && (needs.custom-publish-pypi.result == 'skipped' || needs.custom-publish-pypi.result == 'success') && (needs.custom-publish- wasm.result == 'skipped' || needs.custom-publish-wasm.result == 'success') }}
204
+ if : ${{ always() && needs.host.result == 'success' && (needs.custom-publish-wasm.result == 'skipped' || needs.custom-publish-wasm.result == 'success') }}
245
205
runs-on : " ubuntu-20.04"
246
206
env :
247
207
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments