Skip to content

Commit

Permalink
ci:another attempt at fixing auto versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtule committed Apr 5, 2018
1 parent d7286a3 commit e759089
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ before_deploy:
environment:
is_prerelease: true
githubdeploy: false
VersionSuffix: "-alpha$(APPVEYOR_BUILD_NUMBER)"
VSuffix: "-alpha$(APPVEYOR_BUILD_NUMBER)"

before_build:
- cmd: msbuild /t:restore /p:Configuration=%configuration% /p:VersionSuffix="%VersionSuffix%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- cmd: msbuild /t:restore /p:Configuration=%configuration% /p:Version="%VersionPrefix%%VersionSuffix%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

build_script:
- cmd: msbuild /p:Configuration=%configuration% /p:VersionSuffix="%VersionSuffix%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- cmd: msbuild /p:Configuration=%configuration% /p:Version="%VersionPrefix%%VersionSuffix%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

test:
categories:
Expand Down Expand Up @@ -68,14 +68,14 @@ for:
only:
- /deploy-v.*-beta.*/
environment:
VersionSuffix: "-beta$(APPVEYOR_BUILD_NUMBER)"
VSuffix: "-beta$(APPVEYOR_BUILD_NUMBER)"
is_prerelease: true
githubdeploy: true
- branches:
only:
- /deploy-v[\d,.]*/
configuration: Release
environment:
VersionSuffix: ".$(APPVEYOR_BUILD_NUMBER)"
VSuffix: ".$(APPVEYOR_BUILD_NUMBER)"
is_prerelease: false
githubdeploy: true
1 change: 0 additions & 1 deletion Version.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project>
<PropertyGroup>
<VersionPrefix>7.0.1</VersionPrefix>
<Version>$(VersionPrefix)$(VersionSuffix)</Version>
</PropertyGroup>
</Project>

0 comments on commit e759089

Please sign in to comment.