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 + } +}