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 }