Skip to content

Commit

Permalink
cut release
Browse files Browse the repository at this point in the history
  • Loading branch information
joukevandermaas committed Jan 19, 2016
1 parent db2d663 commit 4992163
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ deploy:
api_key:
secure: dtP6YFOY3quvyRlH0DYG/i4AbOegM/5oT8Q+IcpKMqKZgBiAmm+XRs2TN9+ju9oe
on:
branch: master
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 4992163

Please sign in to comment.