1# Generated from xtask::workflows::release
2# Rebuild with `cargo xtask workflows`.
3name: release
4env:
5 CARGO_TERM_COLOR: always
6 CARGO_INCREMENTAL: '0'
7 RUST_BACKTRACE: '1'
8 ZED_CLIENT_CHECKSUM_SEED: ${{ secrets.ZED_CLIENT_CHECKSUM_SEED }}
9 ZED_MINIDUMP_ENDPOINT: ${{ secrets.ZED_SENTRY_MINIDUMP_ENDPOINT }}
10on:
11 push:
12 tags:
13 - v*
14jobs:
15 run_tests_mac:
16 if: github.repository_owner == 'zed-industries'
17 runs-on: self-mini-macos
18 steps:
19 - name: steps::checkout_repo
20 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
21 with:
22 clean: false
23 - name: steps::setup_cargo_config
24 run: |
25 mkdir -p ./../.cargo
26 cp ./.cargo/ci-config.toml ./../.cargo/config.toml
27 shell: bash -euxo pipefail {0}
28 - name: steps::setup_node
29 uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
30 with:
31 node-version: '20'
32 - name: steps::clippy
33 run: ./script/clippy
34 shell: bash -euxo pipefail {0}
35 - name: steps::cargo_install_nextest
36 run: cargo install cargo-nextest --locked
37 shell: bash -euxo pipefail {0}
38 - name: steps::clear_target_dir_if_large
39 run: ./script/clear-target-dir-if-larger-than 300
40 shell: bash -euxo pipefail {0}
41 - name: steps::cargo_nextest
42 run: cargo nextest run --workspace --no-fail-fast --failure-output immediate-final
43 shell: bash -euxo pipefail {0}
44 - name: steps::cleanup_cargo_config
45 if: always()
46 run: |
47 rm -rf ./../.cargo
48 shell: bash -euxo pipefail {0}
49 timeout-minutes: 60
50 run_tests_linux:
51 if: github.repository_owner == 'zed-industries'
52 runs-on: namespace-profile-16x32-ubuntu-2204
53 steps:
54 - name: steps::checkout_repo
55 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
56 with:
57 clean: false
58 - name: steps::setup_cargo_config
59 run: |
60 mkdir -p ./../.cargo
61 cp ./.cargo/ci-config.toml ./../.cargo/config.toml
62 shell: bash -euxo pipefail {0}
63 - name: steps::setup_linux
64 run: ./script/linux
65 shell: bash -euxo pipefail {0}
66 - name: steps::install_mold
67 run: ./script/install-mold
68 shell: bash -euxo pipefail {0}
69 - name: steps::setup_node
70 uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
71 with:
72 node-version: '20'
73 - name: steps::clippy
74 run: ./script/clippy
75 shell: bash -euxo pipefail {0}
76 - name: steps::cargo_install_nextest
77 run: cargo install cargo-nextest --locked
78 shell: bash -euxo pipefail {0}
79 - name: steps::clear_target_dir_if_large
80 run: ./script/clear-target-dir-if-larger-than 100
81 shell: bash -euxo pipefail {0}
82 - name: steps::cargo_nextest
83 run: cargo nextest run --workspace --no-fail-fast --failure-output immediate-final
84 shell: bash -euxo pipefail {0}
85 - name: steps::cleanup_cargo_config
86 if: always()
87 run: |
88 rm -rf ./../.cargo
89 shell: bash -euxo pipefail {0}
90 timeout-minutes: 60
91 run_tests_windows:
92 if: github.repository_owner == 'zed-industries'
93 runs-on: self-32vcpu-windows-2022
94 steps:
95 - name: steps::checkout_repo
96 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
97 with:
98 clean: false
99 - name: steps::setup_cargo_config
100 run: |
101 New-Item -ItemType Directory -Path "./../.cargo" -Force
102 Copy-Item -Path "./.cargo/ci-config.toml" -Destination "./../.cargo/config.toml"
103 shell: pwsh
104 - name: steps::setup_node
105 uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
106 with:
107 node-version: '20'
108 - name: steps::clippy
109 run: ./script/clippy.ps1
110 shell: pwsh
111 - name: steps::cargo_install_nextest
112 run: cargo install cargo-nextest --locked
113 shell: pwsh
114 - name: steps::clear_target_dir_if_large
115 run: ./script/clear-target-dir-if-larger-than.ps1 250
116 shell: pwsh
117 - name: steps::cargo_nextest
118 run: cargo nextest run --workspace --no-fail-fast --failure-output immediate-final
119 shell: pwsh
120 - name: steps::cleanup_cargo_config
121 if: always()
122 run: |
123 Remove-Item -Recurse -Path "./../.cargo" -Force -ErrorAction SilentlyContinue
124 shell: pwsh
125 timeout-minutes: 60
126 check_scripts:
127 if: github.repository_owner == 'zed-industries'
128 runs-on: namespace-profile-2x4-ubuntu-2404
129 steps:
130 - name: steps::checkout_repo
131 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
132 with:
133 clean: false
134 - name: run_tests::check_scripts::run_shellcheck
135 run: ./script/shellcheck-scripts error
136 shell: bash -euxo pipefail {0}
137 - id: get_actionlint
138 name: run_tests::check_scripts::download_actionlint
139 run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
140 shell: bash -euxo pipefail {0}
141 - name: run_tests::check_scripts::run_actionlint
142 run: |
143 ${{ steps.get_actionlint.outputs.executable }} -color
144 shell: bash -euxo pipefail {0}
145 - name: run_tests::check_scripts::check_xtask_workflows
146 run: |
147 cargo xtask workflows
148 if ! git diff --exit-code .github; then
149 echo "Error: .github directory has uncommitted changes after running 'cargo xtask workflows'"
150 echo "Please run 'cargo xtask workflows' locally and commit the changes"
151 exit 1
152 fi
153 shell: bash -euxo pipefail {0}
154 timeout-minutes: 60
155 create_draft_release:
156 if: github.repository_owner == 'zed-industries'
157 runs-on: namespace-profile-2x4-ubuntu-2404
158 steps:
159 - name: steps::checkout_repo
160 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
161 with:
162 clean: false
163 fetch-depth: 25
164 ref: ${{ github.ref }}
165 - name: script/determine-release-channel
166 run: script/determine-release-channel
167 shell: bash -euxo pipefail {0}
168 - name: mkdir -p target/
169 run: mkdir -p target/
170 shell: bash -euxo pipefail {0}
171 - name: release::create_draft_release::generate_release_notes
172 run: node --redirect-warnings=/dev/null ./script/draft-release-notes "$RELEASE_VERSION" "$RELEASE_CHANNEL" > target/release-notes.md
173 shell: bash -euxo pipefail {0}
174 - name: release::create_draft_release::create_release
175 run: script/create-draft-release target/release-notes.md
176 shell: bash -euxo pipefail {0}
177 env:
178 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
179 timeout-minutes: 60
180 bundle_linux_arm64:
181 needs:
182 - run_tests_linux
183 - check_scripts
184 runs-on: namespace-profile-8x32-ubuntu-2004-arm-m4
185 steps:
186 - name: steps::checkout_repo
187 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
188 with:
189 clean: false
190 - name: steps::setup_sentry
191 uses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454b
192 with:
193 token: ${{ secrets.SENTRY_AUTH_TOKEN }}
194 - name: steps::setup_linux
195 run: ./script/linux
196 shell: bash -euxo pipefail {0}
197 - name: steps::install_mold
198 run: ./script/install-mold
199 shell: bash -euxo pipefail {0}
200 - name: ./script/bundle-linux
201 run: ./script/bundle-linux
202 shell: bash -euxo pipefail {0}
203 - name: '@actions/upload-artifact zed-${{ github.event.pull_request.head.sha || github.sha }}-aarch64-unknown-linux-gnu.tar.gz'
204 uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
205 with:
206 name: zed-${{ github.event.pull_request.head.sha || github.sha }}-aarch64-unknown-linux-gnu.tar.gz
207 path: target/release/zed-*.tar.gz
208 if-no-files-found: error
209 - name: '@actions/upload-artifact zed-remote-server-${{ github.event.pull_request.head.sha || github.sha }}-aarch64-unknown-linux-gnu.tar.gz'
210 uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
211 with:
212 name: zed-remote-server-${{ github.event.pull_request.head.sha || github.sha }}-aarch64-unknown-linux-gnu.tar.gz
213 path: target/zed-remote-server-*.gz
214 if-no-files-found: error
215 outputs:
216 zed: zed-${{ github.event.pull_request.head.sha || github.sha }}-aarch64-unknown-linux-gnu.tar.gz
217 remote-server: zed-remote-server-${{ github.event.pull_request.head.sha || github.sha }}-aarch64-unknown-linux-gnu.tar.gz
218 timeout-minutes: 60
219 bundle_linux_x86_64:
220 needs:
221 - run_tests_linux
222 - check_scripts
223 runs-on: namespace-profile-32x64-ubuntu-2004
224 steps:
225 - name: steps::checkout_repo
226 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
227 with:
228 clean: false
229 - name: steps::setup_sentry
230 uses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454b
231 with:
232 token: ${{ secrets.SENTRY_AUTH_TOKEN }}
233 - name: steps::setup_linux
234 run: ./script/linux
235 shell: bash -euxo pipefail {0}
236 - name: steps::install_mold
237 run: ./script/install-mold
238 shell: bash -euxo pipefail {0}
239 - name: ./script/bundle-linux
240 run: ./script/bundle-linux
241 shell: bash -euxo pipefail {0}
242 - name: '@actions/upload-artifact zed-${{ github.event.pull_request.head.sha || github.sha }}-x86_64-unknown-linux-gnu.tar.gz'
243 uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
244 with:
245 name: zed-${{ github.event.pull_request.head.sha || github.sha }}-x86_64-unknown-linux-gnu.tar.gz
246 path: target/release/zed-*.tar.gz
247 if-no-files-found: error
248 - name: '@actions/upload-artifact zed-remote-server-${{ github.event.pull_request.head.sha || github.sha }}-x86_64-unknown-linux-gnu.tar.gz'
249 uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
250 with:
251 name: zed-remote-server-${{ github.event.pull_request.head.sha || github.sha }}-x86_64-unknown-linux-gnu.tar.gz
252 path: target/zed-remote-server-*.gz
253 if-no-files-found: error
254 outputs:
255 zed: zed-${{ github.event.pull_request.head.sha || github.sha }}-x86_64-unknown-linux-gnu.tar.gz
256 remote-server: zed-remote-server-${{ github.event.pull_request.head.sha || github.sha }}-x86_64-unknown-linux-gnu.tar.gz
257 timeout-minutes: 60
258 bundle_mac_arm64:
259 needs:
260 - run_tests_mac
261 - check_scripts
262 runs-on: self-mini-macos
263 env:
264 MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
265 MACOS_CERTIFICATE_PASSWORD: ${{ secrets.MACOS_CERTIFICATE_PASSWORD }}
266 APPLE_NOTARIZATION_KEY: ${{ secrets.APPLE_NOTARIZATION_KEY }}
267 APPLE_NOTARIZATION_KEY_ID: ${{ secrets.APPLE_NOTARIZATION_KEY_ID }}
268 APPLE_NOTARIZATION_ISSUER_ID: ${{ secrets.APPLE_NOTARIZATION_ISSUER_ID }}
269 steps:
270 - name: steps::checkout_repo
271 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
272 with:
273 clean: false
274 - name: steps::setup_node
275 uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
276 with:
277 node-version: '20'
278 - name: steps::setup_sentry
279 uses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454b
280 with:
281 token: ${{ secrets.SENTRY_AUTH_TOKEN }}
282 - name: steps::clear_target_dir_if_large
283 run: ./script/clear-target-dir-if-larger-than 300
284 shell: bash -euxo pipefail {0}
285 - name: run_bundling::bundle_mac
286 run: ./script/bundle-mac aarch64-apple-darwin
287 shell: bash -euxo pipefail {0}
288 - name: '@actions/upload-artifact Zed_${{ github.event.pull_request.head.sha || github.sha }}-aarch64.dmg'
289 uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
290 with:
291 name: Zed_${{ github.event.pull_request.head.sha || github.sha }}-aarch64.dmg
292 path: target/aarch64-apple-darwin/release/Zed.dmg
293 if-no-files-found: error
294 - name: '@actions/upload-artifact zed-remote-server-${{ github.event.pull_request.head.sha || github.sha }}-macos-aarch64.gz'
295 uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
296 with:
297 name: zed-remote-server-${{ github.event.pull_request.head.sha || github.sha }}-macos-aarch64.gz
298 path: target/zed-remote-server-macos-aarch64.gz
299 if-no-files-found: error
300 outputs:
301 zed: Zed_${{ github.event.pull_request.head.sha || github.sha }}-aarch64.dmg
302 remote-server: zed-remote-server-${{ github.event.pull_request.head.sha || github.sha }}-macos-aarch64.gz
303 timeout-minutes: 60
304 bundle_mac_x86_64:
305 needs:
306 - run_tests_mac
307 - check_scripts
308 runs-on: self-mini-macos
309 env:
310 MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
311 MACOS_CERTIFICATE_PASSWORD: ${{ secrets.MACOS_CERTIFICATE_PASSWORD }}
312 APPLE_NOTARIZATION_KEY: ${{ secrets.APPLE_NOTARIZATION_KEY }}
313 APPLE_NOTARIZATION_KEY_ID: ${{ secrets.APPLE_NOTARIZATION_KEY_ID }}
314 APPLE_NOTARIZATION_ISSUER_ID: ${{ secrets.APPLE_NOTARIZATION_ISSUER_ID }}
315 steps:
316 - name: steps::checkout_repo
317 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
318 with:
319 clean: false
320 - name: steps::setup_node
321 uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
322 with:
323 node-version: '20'
324 - name: steps::setup_sentry
325 uses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454b
326 with:
327 token: ${{ secrets.SENTRY_AUTH_TOKEN }}
328 - name: steps::clear_target_dir_if_large
329 run: ./script/clear-target-dir-if-larger-than 300
330 shell: bash -euxo pipefail {0}
331 - name: run_bundling::bundle_mac
332 run: ./script/bundle-mac x86_64-apple-darwin
333 shell: bash -euxo pipefail {0}
334 - name: '@actions/upload-artifact Zed_${{ github.event.pull_request.head.sha || github.sha }}-x86_64.dmg'
335 uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
336 with:
337 name: Zed_${{ github.event.pull_request.head.sha || github.sha }}-x86_64.dmg
338 path: target/x86_64-apple-darwin/release/Zed.dmg
339 if-no-files-found: error
340 - name: '@actions/upload-artifact zed-remote-server-${{ github.event.pull_request.head.sha || github.sha }}-macos-x86_64.gz'
341 uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
342 with:
343 name: zed-remote-server-${{ github.event.pull_request.head.sha || github.sha }}-macos-x86_64.gz
344 path: target/zed-remote-server-macos-x86_64.gz
345 if-no-files-found: error
346 outputs:
347 zed: Zed_${{ github.event.pull_request.head.sha || github.sha }}-x86_64.dmg
348 remote-server: zed-remote-server-${{ github.event.pull_request.head.sha || github.sha }}-macos-x86_64.gz
349 timeout-minutes: 60
350 bundle_windows_arm64:
351 needs:
352 - run_tests_windows
353 - check_scripts
354 runs-on: self-32vcpu-windows-2022
355 env:
356 AZURE_TENANT_ID: ${{ secrets.AZURE_SIGNING_TENANT_ID }}
357 AZURE_CLIENT_ID: ${{ secrets.AZURE_SIGNING_CLIENT_ID }}
358 AZURE_CLIENT_SECRET: ${{ secrets.AZURE_SIGNING_CLIENT_SECRET }}
359 ACCOUNT_NAME: ${{ vars.AZURE_SIGNING_ACCOUNT_NAME }}
360 CERT_PROFILE_NAME: ${{ vars.AZURE_SIGNING_CERT_PROFILE_NAME }}
361 ENDPOINT: ${{ vars.AZURE_SIGNING_ENDPOINT }}
362 FILE_DIGEST: SHA256
363 TIMESTAMP_DIGEST: SHA256
364 TIMESTAMP_SERVER: http://timestamp.acs.microsoft.com
365 steps:
366 - name: steps::checkout_repo
367 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
368 with:
369 clean: false
370 - name: steps::setup_sentry
371 uses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454b
372 with:
373 token: ${{ secrets.SENTRY_AUTH_TOKEN }}
374 - name: run_bundling::bundle_windows
375 run: script/bundle-windows.ps1 -Architecture aarch64
376 shell: pwsh
377 working-directory: ${{ env.ZED_WORKSPACE }}
378 - name: '@actions/upload-artifact Zed_${{ github.event.pull_request.head.sha || github.sha }}-aarch64.exe'
379 uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
380 with:
381 name: Zed_${{ github.event.pull_request.head.sha || github.sha }}-aarch64.exe
382 path: ${{ env.SETUP_PATH }}
383 if-no-files-found: error
384 outputs:
385 zed: Zed_${{ github.event.pull_request.head.sha || github.sha }}-aarch64.exe
386 timeout-minutes: 60
387 bundle_windows_x86_64:
388 needs:
389 - run_tests_windows
390 - check_scripts
391 runs-on: self-32vcpu-windows-2022
392 env:
393 AZURE_TENANT_ID: ${{ secrets.AZURE_SIGNING_TENANT_ID }}
394 AZURE_CLIENT_ID: ${{ secrets.AZURE_SIGNING_CLIENT_ID }}
395 AZURE_CLIENT_SECRET: ${{ secrets.AZURE_SIGNING_CLIENT_SECRET }}
396 ACCOUNT_NAME: ${{ vars.AZURE_SIGNING_ACCOUNT_NAME }}
397 CERT_PROFILE_NAME: ${{ vars.AZURE_SIGNING_CERT_PROFILE_NAME }}
398 ENDPOINT: ${{ vars.AZURE_SIGNING_ENDPOINT }}
399 FILE_DIGEST: SHA256
400 TIMESTAMP_DIGEST: SHA256
401 TIMESTAMP_SERVER: http://timestamp.acs.microsoft.com
402 steps:
403 - name: steps::checkout_repo
404 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
405 with:
406 clean: false
407 - name: steps::setup_sentry
408 uses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454b
409 with:
410 token: ${{ secrets.SENTRY_AUTH_TOKEN }}
411 - name: run_bundling::bundle_windows
412 run: script/bundle-windows.ps1 -Architecture x86_64
413 shell: pwsh
414 working-directory: ${{ env.ZED_WORKSPACE }}
415 - name: '@actions/upload-artifact Zed_${{ github.event.pull_request.head.sha || github.sha }}-x86_64.exe'
416 uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
417 with:
418 name: Zed_${{ github.event.pull_request.head.sha || github.sha }}-x86_64.exe
419 path: ${{ env.SETUP_PATH }}
420 if-no-files-found: error
421 outputs:
422 zed: Zed_${{ github.event.pull_request.head.sha || github.sha }}-x86_64.exe
423 timeout-minutes: 60
424 upload_release_assets:
425 needs:
426 - create_draft_release
427 - bundle_linux_arm64
428 - bundle_linux_x86_64
429 - bundle_mac_arm64
430 - bundle_mac_x86_64
431 - bundle_windows_arm64
432 - bundle_windows_x86_64
433 runs-on: namespace-profile-4x8-ubuntu-2204
434 steps:
435 - name: release::upload_release_assets::download_workflow_artifacts
436 uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
437 with:
438 path: ./artifacts/
439 - name: ls -lR ./artifacts
440 run: ls -lR ./artifacts
441 shell: bash -euxo pipefail {0}
442 - name: release::upload_release_assets::prep_release_artifacts
443 run: |-
444 mkdir -p release-artifacts/
445
446 mv ./artifacts/${{ needs.bundle_mac_x86_64.outputs.zed }}/* release-artifacts/Zed-x86_64.dmg
447 mv ./artifacts/${{ needs.bundle_mac_arm64.outputs.zed }}/* release-artifacts/Zed-aarch64.dmg
448 mv ./artifacts/${{ needs.bundle_windows_x86_64.outputs.zed }}/* release-artifacts/Zed-x86_64.exe
449 mv ./artifacts/${{ needs.bundle_windows_arm64.outputs.zed }}/* release-artifacts/Zed-aarch64.exe
450 mv ./artifacts/${{ needs.bundle_linux_arm64.outputs.zed }}/* release-artifacts/zed-linux-aarch64.tar.gz
451 mv ./artifacts/${{ needs.bundle_linux_x86_64.outputs.zed }}/* release-artifacts/zed-linux-x86_64.tar.gz
452 mv ./artifacts/${{ needs.bundle_linux_x86_64.outputs.remote-server }}/* release-artifacts/zed-remote-server-linux-x86_64.gz
453 mv ./artifacts/${{ needs.bundle_linux_arm64.outputs.remote-server }}/* release-artifacts/zed-remote-server-linux-aarch64.gz
454 mv ./artifacts/${{ needs.bundle_mac_x86_64.outputs.remote-server }}/* release-artifacts/zed-remote-server-macos-x86_64.gz
455 mv ./artifacts/${{ needs.bundle_mac_arm64.outputs.remote-server }}/* release-artifacts/zed-remote-server-macos-aarch64.gz
456 shell: bash -euxo pipefail {0}
457 - name: gh release upload "$GITHUB_REF_NAME" --repo=zed-industries/zed release-artifacts/*
458 run: gh release upload "$GITHUB_REF_NAME" --repo=zed-industries/zed release-artifacts/*
459 shell: bash -euxo pipefail {0}
460 env:
461 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
462 auto_release_preview:
463 needs:
464 - upload_release_assets
465 if: |
466 false
467 && startsWith(github.ref, 'refs/tags/v')
468 && endsWith(github.ref, '-pre') && !endsWith(github.ref, '.0-pre')
469 runs-on: namespace-profile-2x4-ubuntu-2404
470 steps:
471 - name: gh release edit "$GITHUB_REF_NAME" --repo=zed-industries/zed --draft=false
472 run: gh release edit "$GITHUB_REF_NAME" --repo=zed-industries/zed --draft=false
473 shell: bash -euxo pipefail {0}
474 env:
475 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
476 - name: release::auto_release_preview::create_sentry_release
477 uses: getsentry/action-release@526942b68292201ac6bbb99b9a0747d4abee354c
478 with:
479 environment: production
480 env:
481 SENTRY_ORG: zed-dev
482 SENTRY_PROJECT: zed
483 SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
484concurrency:
485 group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
486 cancel-in-progress: true