Skip to content

Commit

Permalink
fix: set version number (#1338)
Browse files Browse the repository at this point in the history
* dry run semantic release

* fix: setting version number

* fix syntax error

* Display the version
  • Loading branch information
paulpach committed Dec 21, 2019
1 parent 9926472 commit 0d1d7b5
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,17 @@ install:
# Do not build on tags (GitHub only)
skip_tags: true
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:
- docfx metadata doc\docfx.json
- docfx build doc\docfx.json
Expand Down

0 comments on commit 0d1d7b5

Please sign in to comment.