fix(workflow): use the dev version of the web for beta releases (#7862)

* fix(workflow): use dev version of the web for beta releases

* chore(config): check version string by prefix
This commit is contained in:
Jealous
2025-01-23 22:49:35 +08:00
committed by GitHub
parent 11b6a6012f
commit c2633dd443
4 changed files with 18 additions and 5 deletions

View File

@ -7,6 +7,9 @@ gitCommit=$(git log --pretty=format:"%h" -1)
if [ "$1" = "dev" ]; then
version="dev"
webVersion="dev"
elif [ "$1" = "beta" ]; then
version="beta"
webVersion="dev"
else
git tag -d beta
version=$(git describe --abbrev=0 --tags)
@ -301,8 +304,12 @@ if [ "$1" = "dev" ]; then
else
BuildDev
fi
elif [ "$1" = "release" ]; then
FetchWebRelease
elif [ "$1" = "release" -o "$1" = "beta" ]; then
if [ "$1" = "beta" ]; then
FetchWebDev
else
FetchWebRelease
fi
if [ "$2" = "docker" ]; then
BuildDocker
elif [ "$2" = "docker-multiplatform" ]; then