Store current release channel name in a file in the zed crate

This commit is contained in:
Max Brunsfeld
2022-10-26 16:19:19 -07:00
parent 1cdd3c0e28
commit a4a8596a29
10 changed files with 80 additions and 36 deletions
+6 -7
View File
@@ -28,17 +28,16 @@ jobs:
clean: false
submodules: 'recursive'
- name: Check that tag version matches package version
- name: Determine version
run: |
set -eu
crate_version=$(script/get-crate-version collab)
tag_version=$(echo $GITHUB_REF_NAME | sed -e 's/collab-v//')
if [[ $tag_version != $crate_version ]]; then
echo "collab crate version $crate_version does not match git tag version $tag_version"
version=$(script/get-crate-version collab)
if [[ $GITHUB_REF_NAME != "collab-v${version}" ]]; then
echo "release tag ${GITHUB_REF_NAME} does not match version ${version}"
exit 1
fi
echo "Publishing collab version: $crate_version"
echo "COLLAB_VERSION=$crate_version" >> $GITHUB_ENV
echo "Publishing collab version: ${version}"
echo "COLLAB_VERSION=${version}" >> $GITHUB_ENV
- name: Build docker image
run: docker build . --tag registry.digitalocean.com/zed/collab:v${COLLAB_VERSION}