Skip to content

Commit

Permalink
Update version number
Browse files Browse the repository at this point in the history
  • Loading branch information
joukevandermaas committed Jan 19, 2016
1 parent db2d663 commit 28b66d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
version: 1.4.0.{build}
version: 1.5.0.{build}
configuration: Release
skip_tags: true
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
Expand All @@ -18,7 +19,8 @@ deploy:
api_key:
secure: dtP6YFOY3quvyRlH0DYG/i4AbOegM/5oT8Q+IcpKMqKZgBiAmm+XRs2TN9+ju9oe
on:
branch: master
appveyor_repo_tag: false
branch: /(master|release-v.+)/
- release: saule-v$(appveyor_build_version)
description: ''
provider: GitHub
Expand Down
4 changes: 2 additions & 2 deletions set-version.ps1
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
$isTag = $Env:APPVEYOR_REPO_TAG;
$isRelease = $Env:APPVEYOR_REPO_BRANCH -match 'release-v.+';

$project = 'Saule';
$path = Resolve-Path "$project/$project.nuspec";

Write-Host "Updating nuget version for project $project";

[xml]$nuspec = Get-Content $path;
if ($isTag -eq 'true') {
if ($isRelease) {
$nuspec.package.metadata.version = '$version$';
Write-Host 'Set version to "$version$"';
} else {
Expand Down

0 comments on commit 28b66d2

Please sign in to comment.