Skip to content

Commit 027f800

Browse files
committed
Comment out non-npm-publish jobs
1 parent 425870d commit 027f800

File tree

2 files changed

+4
-44
lines changed

2 files changed

+4
-44
lines changed

.github/workflows/release.yml

+2-42
Original file line numberDiff line numberDiff line change
@@ -89,33 +89,10 @@ jobs:
8989
name: artifacts-plan-dist-manifest
9090
path: plan-dist-manifest.json
9191

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-
11392
# Build and package all the platform-agnostic(ish) things
11493
build-global-artifacts:
11594
needs:
11695
- plan
117-
- custom-build-binaries
118-
- custom-build-docker
11996
runs-on: "ubuntu-20.04"
12097
env:
12198
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -160,11 +137,9 @@ jobs:
160137
host:
161138
needs:
162139
- plan
163-
- custom-build-binaries
164-
- custom-build-docker
165140
- build-global-artifacts
166141
# 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') }}
168143
env:
169144
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
170145
runs-on: "ubuntu-20.04"
@@ -202,20 +177,6 @@ jobs:
202177
name: artifacts-dist-manifest
203178
path: dist-manifest.json
204179

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-
219180
custom-publish-wasm:
220181
needs:
221182
- plan
@@ -236,12 +197,11 @@ jobs:
236197
needs:
237198
- plan
238199
- host
239-
- custom-publish-pypi
240200
- custom-publish-wasm
241201
# use "always() && ..." to allow us to wait for all publish jobs while
242202
# still allowing individual publish jobs to skip themselves (for prereleases).
243203
# "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') }}
245205
runs-on: "ubuntu-20.04"
246206
env:
247207
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,9 @@ github-release = "announce"
301301
# Whether CI should include auto-generated code to build local artifacts
302302
build-local-artifacts = false
303303
# Local artifacts jobs to run in CI
304-
local-artifacts-jobs = ["./build-binaries", "./build-docker"]
304+
# local-artifacts-jobs = ["./build-binaries", "./build-docker"]
305305
# Publish jobs to run in CI
306-
publish-jobs = ["./publish-pypi", "./publish-wasm"]
306+
publish-jobs = ["./publish-wasm"]
307307
# Post-announce jobs to run in CI
308308
post-announce-jobs = ["./notify-dependents", "./publish-docs", "./publish-playground"]
309309
# Custom permissions for GitHub Jobs

0 commit comments

Comments
 (0)