diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0f2e3cf778..d68ec91221 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,6 +13,7 @@ build: - output - test_output script: + - if [ "$CI_COMMIT_REF_SLUG" == "release" ]; then Dist/UpdateVersionInfoForRelease.sh; fi - Dist/BuildRelease.sh stage: build @@ -34,7 +35,7 @@ package: - ./* image: ubuntu:focal rules: - - if: '$CI_COMMIT_REF_SLUG == "master"' + - if: '$CI_COMMIT_REF_SLUG == "master" || $CI_COMMIT_REF_SLUG == "release"' when: always script: - su -c "apt-get update && apt-get -y install p7zip-full" diff --git a/Dist/UpdateVersionInfoForRelease.sh b/Dist/UpdateVersionInfoForRelease.sh new file mode 100755 index 0000000000..7e09eb679a --- /dev/null +++ b/Dist/UpdateVersionInfoForRelease.sh @@ -0,0 +1,5 @@ +#!/bin/sh +echo "yo we updating VersionInfo" +cd "$(dirname "$0")/../src/BizHawk.Common" +sed -i "s/ReleaseDate = \"[^\"]*\"/ReleaseDate = \"$(date "+%B %-d, %Y")\"/" "VersionInfo.cs" +sed -i "s/DeveloperBuild = true/DeveloperBuild = false/" "VersionInfo.cs"