release.yml

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