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.

This commit is contained in:
RKrom 2014-11-04 07:10:18 +01:00
commit 6765269e4d

View file

@ -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
}