only run release builds on tags that start with "vX" (#4219)

This commit is contained in:
Evan Boyle 2020-03-28 14:49:18 -07:00 committed by GitHub
parent e4daaf36cb
commit 6a945294e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -68,5 +68,5 @@ build_script:
pushd . && cd tests && go mod tidy && go mod download && popd
if defined APPVEYOR_REPO_TAG_NAME ( dotnet msbuild /t:ReleaseProcess /v:Detailed build.proj )
.\scripts\release.cmd
test: off

View file

@ -1,4 +1,4 @@
if: branch = master OR branch =~ ^features/ OR branch =~ ^feature- OR tag IS present
if: branch = master OR branch =~ ^features/ OR branch =~ ^feature- OR tag =~ ^v\d+.*
matrix:
include:
- os: linux

6
scripts/release.cmd Normal file
View file

@ -0,0 +1,6 @@
echo %APPVEYOR_REPO_TAG_NAME%|findstr "^v[0-9]" >Nul 2>&1
if %errorlevel% == 0 (
dotnet msbuild /t:ReleaseProcess /v:Detailed build.proj
) else (
exit 0
)