mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-11 15:47:55 +00:00
scripts: do not upload branches as main continious prerelease
This commit is contained in:
parent
fc7fb8b62d
commit
654bac83a5
@ -84,29 +84,59 @@ if [ ! -z "$UPLOADTOOL_SUFFIX" ] ; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# ,, is a bash-ism to convert variable to lower case
|
if [ "$GITHUB_ACTIONS" = "true" ]; then
|
||||||
case $(tr '[:upper:]' '[:lower:]' <<< "$GIT_TAG") in
|
if [ "$GITHUB_REF_TYPE" == "branch" ]; then
|
||||||
"")
|
if [ "$GITHUB_REF_NAME" == "master" ]; then
|
||||||
# Do not use "latest" as it is reserved by GitHub
|
RELEASE_NAME="continuous"
|
||||||
RELEASE_NAME="continuous"
|
RELEASE_TITLE="Continuous build"
|
||||||
RELEASE_TITLE="Continuous build"
|
else
|
||||||
if [ -z "$UPLOADTOOL_ISPRERELEASE" ] ; then
|
RELEASE_NAME="continuous-$GITHUB_REF_NAME"
|
||||||
|
RELEASE_TITLE="Continuous build ($GITHUB_REF_NAME)"
|
||||||
|
fi
|
||||||
|
if [ -z "$UPLOADTOOL_ISPRERELEASE" ]; then
|
||||||
is_prerelease="false"
|
is_prerelease="false"
|
||||||
else
|
else
|
||||||
is_prerelease="true"
|
is_prerelease="true"
|
||||||
fi
|
fi
|
||||||
;;
|
elif [ "$GITHUB_REF_TYPE" == "tag" ]; then
|
||||||
*-alpha*|*-beta*|*-rc*)
|
case $(tr '[:upper:]' '[:lower:]' <<< "$GITHUB_REF_NAME") in
|
||||||
RELEASE_NAME="$GIT_TAG"
|
*-alpha*|*-beta*|*-rc*)
|
||||||
RELEASE_TITLE="Pre-release build ($GIT_TAG)"
|
RELEASE_NAME="$GITHUB_REF_NAME"
|
||||||
is_prerelease="true"
|
RELEASE_TITLE="Pre-release build ($GITHUB_REF_NAME)"
|
||||||
;;
|
is_prerelease="true"
|
||||||
*)
|
;;
|
||||||
RELEASE_NAME="$GIT_TAG"
|
*)
|
||||||
RELEASE_TITLE="Release build ($GIT_TAG)"
|
RELEASE_NAME="$GITHUB_REF_NAME"
|
||||||
is_prerelease="false"
|
RELEASE_TITLE="Release build ($GITHUB_REF_NAME)"
|
||||||
;;
|
is_prerelease="false"
|
||||||
esac
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# ,, is a bash-ism to convert variable to lower case
|
||||||
|
case $(tr '[:upper:]' '[:lower:]' <<< "$GIT_TAG") in
|
||||||
|
"")
|
||||||
|
# Do not use "latest" as it is reserved by GitHub
|
||||||
|
RELEASE_NAME="continuous"
|
||||||
|
RELEASE_TITLE="Continuous build"
|
||||||
|
if [ -z "$UPLOADTOOL_ISPRERELEASE" ] ; then
|
||||||
|
is_prerelease="false"
|
||||||
|
else
|
||||||
|
is_prerelease="true"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*-alpha*|*-beta*|*-rc*)
|
||||||
|
RELEASE_NAME="$GIT_TAG"
|
||||||
|
RELEASE_TITLE="Pre-release build ($GIT_TAG)"
|
||||||
|
is_prerelease="true"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
RELEASE_NAME="$GIT_TAG"
|
||||||
|
RELEASE_TITLE="Release build ($GIT_TAG)"
|
||||||
|
is_prerelease="false"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Do not upload non-master branch builds
|
# Do not upload non-master branch builds
|
||||||
|
Loading…
Reference in New Issue
Block a user