fix build with appveyor warning (#1340)

* Fix build when semantic release shows error

* Fix appveyor with version warning
This commit is contained in:
Paul Pacheco 2019-12-21 14:20:06 -06:00 committed by GitHub
parent c19fb99877
commit 6981c19a13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 10 deletions

View File

@ -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

8
setversion.ps1 Normal file
View File

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