]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Support RC tagging, simplify pipeline files rsync
authorbones_was_here <bones_was_here@xonotic.au>
Sun, 28 May 2023 07:06:32 +0000 (17:06 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sun, 28 May 2023 07:06:32 +0000 (17:06 +1000)
misc/infrastructure/xonotic-release-build.cron
misc/tools/all/release.subr

index 8a16fbcaa22325e89b6ce53b5fca1e52f3451ca4..8293b3a101c151f4c35d1a056b7281dbb4d9b63e 100755 (executable)
@@ -10,6 +10,10 @@ case "$RELEASETYPE" in
                RELEASETYPEDIR=
                RELEASETYPENAME="$RELEASETYPE"
                ;;
+       RC*)
+               RELEASETYPEDIR="$RELEASETYPE/"
+               RELEASETYPENAME="$RELEASETYPE build"
+               ;;
        *)
                RELEASETYPEDIR="$RELEASETYPE/"
                RELEASETYPENAME="$RELEASETYPE-like build"
@@ -95,9 +99,7 @@ if [ -z "$RELEASETYPEDIR" ]; then
        # pipeline files, see: .gitlab-ci.yml in xonotic-data.pk3dir
        cp data/stormkeep-????????????????????????????????????????-????????????????????????????????????????.pk3 stormkeep.pk3
        PIPELINE_FILES="gmqcc/gmqcc Xonotic/xonotic-linux64-dedicated stormkeep.pk3"
-       for FILE in $PIPELINE_FILES; do
-               rsync -vSP "$FILE" autobuild-release-uploader@beta.xonotic.org:../pipeline-bin/
-       done
+       rsync -vSP $PIPELINE_FILES autobuild-release-uploader@beta.xonotic.org:../pipeline-bin/
        rm -f stormkeep.pk3
 fi
 echo "Finished a new $RELEASETYPENAME at http://beta.xonotic.org/autobuild/$RELEASETYPEDIR" | $IRCSPAM
index be1cc7fec8e9af252a8fac53d419329cb518a614..161dec265129f2ec18e97ca18903bfc10dbee12f 100644 (file)
@@ -150,7 +150,7 @@ case "$cmd" in
                                #   (YYYYMMDD)
                                exit 1
                                ;;
-                       release)
+                       release|RC*)
                                msg "Building a FINISHED RELEASE"
                                getversion data/xonotic-data.pk3dir
                                verbose "$SELF" each -k git tag -m "TEMP TAG" -f "xonotic-v$versionstr"
@@ -164,7 +164,7 @@ case "$cmd" in
                if [ -n "$RELEASEDATE" ]; then
                        verbose $ECHO "$RELEASEDATE" > Xonotic/stamp.txt
                        case "$RELEASETYPE" in
-                               release)
+                               release|RC*)
                                        verbose $ECHO "${RELEASEDATE%_*}" > Xonotic/pk3stamp.txt
                                        ;;
                                *)
@@ -456,6 +456,9 @@ case "$cmd" in
                        case "$RELEASETYPE" in
                                release)
                                        ;;
+                               RC*)
+                                       versionstr="$versionstr $RELEASETYPE"
+                                       ;;
                                *)
                                        versionstr="$versionstr$RELEASETYPE"
                                        ;;
@@ -479,7 +482,7 @@ case "$cmd" in
                        fi
                        mv xonotic-common.cfg.new xonotic-common.cfg
                        case "$RELEASETYPE" in
-                               release)
+                               release|RC*)
                                        echo "" >> xonotic-common.cfg
                                        echo "// nicer menu" >> xonotic-common.cfg
                                        echo "set menu_watermark \"\"" >> xonotic-common.cfg