Skip to content

Commit

Permalink
Merge pull request #25 from mast-eu/CombineArtifacts
Browse files Browse the repository at this point in the history
Combine artifacts for signing
  • Loading branch information
mast-eu committed Aug 12, 2019
2 parents 3dad53b + 68711ba commit ec8c3ea
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,31 @@ build_script:
test_script:
- ps: .\tools\Run-Tests.ps1

after_test:
- ps: |
# do not sign artifacts for PR to release branches, publish dev builds instead
if ($env:APPVEYOR_PULL_REQUEST_TITLE) {
Write-Host "[INFO]: Do not sign artifacts from PR to release branch"
Get-ChildItem GitExtensions.PluginManager*.nupkg | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
Get-ChildItem GitExtensions.PluginManager*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
Exit-AppVeyorBuild
return
}
else {
Write-Host "[INFO]: Prepare combined artifact for signing on release branch"
Write-Host "Creating combined build artifact ..."
$nupkg = (Resolve-Path .\GitExtensions.PluginManager*.nupkg)[0].Path;
$zip = (Resolve-Path .\GitExtensions.PluginManager*.zip)[0].Path;
$combined = ".\GitExtensions.PluginManager.$($env:APPVEYOR_BUILD_VERSION)$($env:version_suffix).combined-unsigned.zip"
Compress-Archive -LiteralPath $nupkg, $zip -CompressionLevel NoCompression -DestinationPath $combined -Force
}
#---------------------------------#
# artifacts configuration #
#---------------------------------#

artifacts:
- path: .\*.zip
- path: .\*.nupkg
- path: .\GitExtensions.PluginManager.*.combined-unsigned.zip

#---------------------------------#
# deployment configuration #
Expand All @@ -63,7 +81,7 @@ deploy:
- provider: Webhook
on:
ARTIFACT_SIGNING_ENABLED: true
url: https://app.signpath.io/API/v1/7c19b2cf-90f7-4d15-9b12-1b615f7c18c4/Integrations/AppVeyor?SigningPolicyId=8a4ce84a-78d1-4fc0-8c0c-7cd51fb108c0
url: https://app.signpath.io/API/v1/7c19b2cf-90f7-4d15-9b12-1b615f7c18c4/Integrations/AppVeyor?SigningPolicyId=cae0b405-4eda-43db-b19e-7e47faa929e0
on_build_success: true
on_build_failure: false
on_build_status_changed: false
Expand Down

0 comments on commit ec8c3ea

Please sign in to comment.