From c49eb805e9774646f4b1ed7b3549c7874d3dfa46 Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Tue, 22 Nov 2016 09:29:43 -0800 Subject: [PATCH] Update release script --- dev-bin/release.ps1 | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/dev-bin/release.ps1 b/dev-bin/release.ps1 index 0258448..857f622 100644 --- a/dev-bin/release.ps1 +++ b/dev-bin/release.ps1 @@ -32,10 +32,7 @@ if ((Read-Host -Prompt 'Continue? (y/n)') -ne 'y') { Write-Error 'Aborting' } -if (-Not(& git status --porcelain)) { - & git add $projectJsonFile - & git commit -m "Prepare for $version" -} +& git commit -m "Prepare for $version" -a Push-Location MaxMind.Db @@ -59,9 +56,7 @@ if ((Read-Host -Prompt 'Should push? (y/n)') -ne 'y') { & git push Pop-Location -& git tag "$tag" +& hub release create "$tag" & git push -& git push --tags & nuget push "MaxMind.MinFraud/bin/Release/MaxMind.Db.$version.nupkg" -Source https://www.nuget.org/api/v2/package -