From 6765269e4dbc9e1fdd0988999bf40295dde13e38 Mon Sep 17 00:00:00 2001 From: RKrom Date: Tue, 4 Nov 2014 07:10:18 +0100 Subject: [PATCH] Changed the way the script tags, adding a remote with the git protocol makes sure the SSH key is used instead of trying to ask a password interactively. --- build.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.ps1 b/build.ps1 index 62bbabace..e32be3eb9 100644 --- a/build.ps1 +++ b/build.ps1 @@ -209,6 +209,8 @@ Function PackageInstaller { # This function tags the current Function TagCode { + Write-Host "Add remote via git, so SSH key works" + git remote add tagorigin git@bitbucket.org:greenshot/greenshot.git Write-Host "Setting id_rsa with the content from environment rsakey so we can push a tag" # Write the RSA key contents from the AppVeyor rsakey UI ENV variable to the private key file $key = $env:rsakey @@ -224,7 +226,7 @@ Function TagCode { Write-Host "Tagging repo with $fileversion" git tag -a $fileversion -m 'Build from AppVeyor' Write-Host "Pushing tag $fileversion to remote" - git push origin $fileversion + git push tagorigin $fileversion return }