Update release process to create versioned docs (#8817)

* Update release process to create versioned docs
* Remove test, separate tag
This commit is contained in:
Jukka Kurkela
2021-04-04 16:10:29 +03:00
committed by GitHub
parent 77cdadb1dc
commit c6d43bbbc5
4 changed files with 73 additions and 52 deletions

23
scripts/utils.sh Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
# tag is next|latest|master|x.x.x
# https://www.chartjs.org/dist/$tag/
# https://www.chartjs.org/docs/$tag/
# https://www.chartjs.org/samples/$tag/
function tag_from_version {
local version=$1
local mode=$2
local tag=''
if [ "$version" == "master" ]; then
tag=master
elif [[ "$version" =~ ^[^-]+$ ]]; then
if [[ "$mode" == "release" ]]
tag=$version
else
tag=latest
fi
else
tag=next
fi
echo $tag
}