Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ci: No draft releases when using 'run-bundling' (#28596)
Peter Tripp6a60bb189b65
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 6375d74f15d..4ddb5173e7b 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -594,7 +594,7 @@ jobs:timeout-minutes: 60name: Linux x86_x64 release bundleruns-on:- - buildjet-16vcpu-ubuntu-2004+ - buildjet-16vcpu-ubuntu-2004 # ubuntu 20.04 for minimal glibcif: |startsWith(github.ref, 'refs/tags/v')|| contains(github.event.pull_request.labels.*.name, 'run-bundling')@@ -622,26 +622,23 @@ jobs:- name: Create Linux .tar.gz bundlerun: script/bundle-linux- - name: Upload Linux bundle to workflow run if main branch or specific label+ - name: Upload Artifact to Workflow - zed (run-bundling)uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4- if: |- github.ref == 'refs/heads/main'- || contains(github.event.pull_request.labels.*.name, 'run-bundling')+ if: contains(github.event.pull_request.labels.*.name, 'run-bundling')with:name: zed-${{ github.event.pull_request.head.sha || github.sha }}-x86_64-unknown-linux-gnu.tar.gzpath: target/release/zed-*.tar.gz- - name: Upload Linux remote server to workflow run if main branch or specific label+ - name: Upload Artifact to Workflow - zed-remote-server (run-bundling)uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4- if: |- github.ref == 'refs/heads/main'- || contains(github.event.pull_request.labels.*.name, 'run-bundling')+ if: contains(github.event.pull_request.labels.*.name, 'run-bundling')with:name: zed-remote-server-${{ github.event.pull_request.head.sha || github.sha }}-x86_64-unknown-linux-gnu.gzpath: target/zed-remote-server-linux-x86_64.gz- - name: Upload app bundle to release+ - name: Upload Artifacts to releaseuses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1+ if: ${{ !(contains(github.event.pull_request.labels.*.name, 'run-bundling')) }}with:draft: trueprerelease: ${{ env.RELEASE_CHANNEL == 'preview' }}@@ -680,29 +677,26 @@ jobs:# This exports RELEASE_CHANNEL into env (GITHUB_ENV)script/determine-release-channel- - name: Create and upload Linux .tar.gz bundle+ - name: Create and upload Linux .tar.gz bundlesrun: script/bundle-linux- - name: Upload Linux bundle to workflow run if main branch or specific label+ - name: Upload Artifact to Workflow - zed (run-bundling)uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4- if: |- github.ref == 'refs/heads/main'- || contains(github.event.pull_request.labels.*.name, 'run-bundling')+ if: contains(github.event.pull_request.labels.*.name, 'run-bundling')with:name: zed-${{ github.event.pull_request.head.sha || github.sha }}-aarch64-unknown-linux-gnu.tar.gzpath: target/release/zed-*.tar.gz- - name: Upload Linux remote server to workflow run if main branch or specific label+ - name: Upload Artifact to Workflow - zed-remote-server (run-bundling)uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4- if: |- github.ref == 'refs/heads/main'- || contains(github.event.pull_request.labels.*.name, 'run-bundling')+ if: contains(github.event.pull_request.labels.*.name, 'run-bundling')with:name: zed-remote-server-${{ github.event.pull_request.head.sha || github.sha }}-aarch64-unknown-linux-gnu.gzpath: target/zed-remote-server-linux-aarch64.gz- - name: Upload app bundle to release+ - name: Upload Artifacts to releaseuses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1+ if: ${{ !(contains(github.event.pull_request.labels.*.name, 'run-bundling')) }}with:draft: trueprerelease: ${{ env.RELEASE_CHANNEL == 'preview' }}diff --git a/script/generate-licenses b/script/generate-licensesindex 901e1040a20..9fcb2bd5133 100755--- a/script/generate-licenses+++ b/script/generate-licenses@@ -18,7 +18,7 @@ echo -n "" >"$OUTPUT_FILE"echo -e "\n# ###### CODE LICENSES ######\n"} >>"$OUTPUT_FILE"-if ! cargo about --version | grep "cargo-about $CARGO_ABOUT_VERSION" 2>&1 >/dev/null; then+if ! cargo about --version | grep "cargo-about $CARGO_ABOUT_VERSION" &>/dev/null; thenecho "Installing cargo-about@^$CARGO_ABOUT_VERSION..."cargo install "cargo-about@^$CARGO_ABOUT_VERSION"else