fix: set version number (#1338)

* dry run semantic release

* fix: setting version number

* fix syntax error

* Display the version
This commit is contained in:
Paul Pacheco 2019-12-21 13:54:18 -06:00 committed by GitHub
parent 9926472d98
commit 0d1d7b5a1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,16 @@ install:
# Do not build on tags (GitHub only) # Do not build on tags (GitHub only)
skip_tags: true skip_tags: true
before_build: before_build:
semantic-release --prepare - ps: |
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
}
}
build_script: build_script:
- docfx metadata doc\docfx.json - docfx metadata doc\docfx.json