Use distinct version for zed2, append git hash to its nightly version

This commit is contained in:
Kirill Bulatov 2023-12-06 16:17:10 +02:00
parent ec798e6574
commit 9e1d797445
3 changed files with 4 additions and 3 deletions

View file

@ -81,11 +81,12 @@ jobs:
- name: Limit target directory size
run: script/clear-target-dir-if-larger-than 100
- name: Set release channel to nightly
- name: Set release channel to nightly, add nightly prefix to the final version
run: |
set -eu
version=$(git rev-parse --short HEAD)
echo "Publishing version: ${version} on release channel nightly"
sed -i '' "s/version = \"\(.*\)\"/version = \"\1-nightly\"/" crates/zed2/Cargo.toml
echo "nightly" > crates/zed/RELEASE_CHANNEL
- name: Generate license file

2
Cargo.lock generated
View file

@ -11889,7 +11889,7 @@ dependencies = [
[[package]]
name = "zed2"
version = "0.109.0"
version = "2.0.0"
dependencies = [
"activity_indicator2",
"ai2",

View file

@ -2,7 +2,7 @@
description = "The fast, collaborative code editor."
edition = "2021"
name = "zed2"
version = "0.109.0"
version = "2.0.0"
publish = false
[lib]