mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 18:57:28 -07:00
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:
parent
e3678436d4
commit
6765269e4d
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue