remove bintray deploy (#2511)
This commit is contained in:
parent
0da2bdd7aa
commit
2d401e4aba
1 changed files with 0 additions and 12 deletions
12
appveyor.yml
12
appveyor.yml
|
@ -85,17 +85,5 @@ build_script:
|
||||||
$json = New-Object PSObject
|
$json = New-Object PSObject
|
||||||
(New-Object PSObject | Add-Member -PassThru NoteProperty bin $new_name | Add-Member -PassThru NoteProperty cmake $cmake_name | Add-Member -PassThru NoteProperty commit $env:APPVEYOR_REPO_COMMIT) | ConvertTo-JSON | Out-File -FilePath "latest-$env:target_arch" -Encoding ASCII
|
(New-Object PSObject | Add-Member -PassThru NoteProperty bin $new_name | Add-Member -PassThru NoteProperty cmake $cmake_name | Add-Member -PassThru NoteProperty commit $env:APPVEYOR_REPO_COMMIT) | ConvertTo-JSON | Out-File -FilePath "latest-$env:target_arch" -Encoding ASCII
|
||||||
Push-AppveyorArtifact "latest-$env:target_arch"
|
Push-AppveyorArtifact "latest-$env:target_arch"
|
||||||
$bt_password = ConvertTo-SecureString $Env:BINTRAY_APIKEY -AsPlainText -Force
|
|
||||||
$bt_credentials = New-Object System.Management.Automation.PSCredential ($Env:BINTRAY_USER, $bt_password)
|
|
||||||
$exe -match "Cockatrice-(?<content>.*)\.exe"
|
|
||||||
$version = $matches['content']
|
$version = $matches['content']
|
||||||
$bt_headers = @{
|
|
||||||
"X-Bintray-Package" = "Cockatrice-git";
|
|
||||||
"X-Bintray-Version" = $version;
|
|
||||||
"X-Bintray-Publish" = 1;
|
|
||||||
"X-Bintray-Override" = 1;
|
|
||||||
}
|
|
||||||
$url = "https://api.bintray.com/content/cockatrice/Cockatrice/$env:bintray_path/$new_name"
|
|
||||||
$result = Invoke-WebRequest -Uri $url -Credential $bt_credentials -Method PUT -Headers $bt_headers -InFile "$exe"
|
|
||||||
Write-Host $result
|
|
||||||
test: off
|
test: off
|
||||||
|
|
Loading…
Reference in a new issue