From 6981c19a133889b5a7c1d753649471e75998f889 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Sat, 21 Dec 2019 14:20:06 -0600 Subject: [PATCH] fix build with appveyor warning (#1340) * Fix build when semantic release shows error * Fix appveyor with version warning --- appveyor.yml | 11 +---------- setversion.ps1 | 8 ++++++++ 2 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 setversion.ps1 diff --git a/appveyor.yml b/appveyor.yml index 0b3aa5548..803617186 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -19,16 +19,7 @@ install: # Do not build on tags (GitHub only) skip_tags: true before_build: - - ps: | - semantic-release --dry-run 2>&1 | %{ - echo $_ - $fields = -split $_; - if ($fields[0] -eq "#" -or $fields[0] -eq "##") { - echo "Mirror version " $fields[1] - echo $fields[1] > Assets/Mirror/version.txt - } - } - + - cmd: powershell .\setversion.ps1 build_script: - docfx metadata doc\docfx.json diff --git a/setversion.ps1 b/setversion.ps1 new file mode 100644 index 000000000..187258ab6 --- /dev/null +++ b/setversion.ps1 @@ -0,0 +1,8 @@ +semantic-release --dry-run | %{ + echo $_ + $fields = -split $_; + if ($fields[0] -eq "#" -or $fields[0] -eq "##") { + echo "Mirror version " $fields[1] + echo $fields[1] > Assets/Mirror/version.txt + } +}