Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix draft-releaase-notes (#20885)
Conrad Irwinc2668bc953c6
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex ee6f81dd84f..f22a8a518e5 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -244,6 +244,7 @@ jobs:## 25 was chosen arbitrarily.fetch-depth: 25+ fetch-tags: trueclean: false- name: Limit target directory size@@ -261,6 +262,9 @@ jobs:mkdir -p target/# Ignore any errors that occur while drafting release notes to not fail the build.script/draft-release-notes "$RELEASE_VERSION" "$RELEASE_CHANNEL" > target/release-notes.md || true+ script/create-draft-release target/release-notes.md+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- name: Generate license filerun: script/generate-licenses@@ -306,7 +310,6 @@ jobs:target/aarch64-apple-darwin/release/Zed-aarch64.dmgtarget/x86_64-apple-darwin/release/Zed-x86_64.dmgtarget/release/Zed.dmg- body_path: target/release-notes.mdenv:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}@@ -401,19 +404,3 @@ jobs:target/release/zed-linux-aarch64.tar.gzenv:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}-- auto-publish-release:- timeout-minutes: 60- name: Create a Linux bundle- runs-on:- - self-hosted- if: ${{ startsWith(github.ref, 'refs/tags/v') && endsWith(github.ref, '-pre') && !endsWith(github.ref, '.0-pre') }}- needs: [bundle-mac, bundle-linux-aarch64, bundle-linux]- steps:- - name: Upload app bundle to release- uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1- with:- draft: false- prerelease: ${{ env.RELEASE_CHANNEL == 'preview' }}- env:- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}diff --git a/script/create-draft-release b/script/create-draft-releasenew file mode 100755index 00000000000..e72c6d141c2--- /dev/null+++ b/script/create-draft-release@@ -0,0 +1,8 @@+#!/usr/bin/env bash++preview=""+if [[ "$GITHUB_REF_NAME" == *"-pre" ]]; then+ preview="-p"+fi++gh release create -d "$GITHUB_REF_NAME" -F "$1" $preview