|
1 | 1 | # version format |
2 | | -version: 3.1.0.{build} |
| 2 | +version: 3.1.1.{build} |
3 | 3 |
|
4 | 4 | matrix: |
5 | 5 | fast_finish: true |
@@ -71,16 +71,51 @@ test_script: |
71 | 71 | dotnet test -c Release --no-restore --no-build --nologo --verbosity q --test-adapter-path:. --logger:Appveyor --logger:trx /bl:.\artifacts\logs\tests.binlog |
72 | 72 | if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } |
73 | 73 |
|
| 74 | +after_test: |
| 75 | +- ps: | |
| 76 | + # do not sign artifacts for PR to release branches, publish dev builds instead |
| 77 | + if (!$env:APPVEYOR_REPO_BRANCH.StartsWith("release/") -or $env:APPVEYOR_PULL_REQUEST_TITLE) { |
| 78 | + Write-Host "[INFO]: Do not sign artifacts from PR to release branch" |
| 79 | + Get-ChildItem .\artifacts\GitExtensions.PluginManager*.nupkg | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name } |
| 80 | + Get-ChildItem .\artifacts\GitExtensions.PluginManager*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name } |
| 81 | + Exit-AppVeyorBuild |
| 82 | + return |
| 83 | + } |
| 84 | + else { |
| 85 | + Write-Host "[INFO]: Prepare combined artifact for signing on release branch" |
| 86 | + Write-Host "Creating combined build artifact ..." |
| 87 | + $nupkg = (Resolve-Path .\artifacts\GitExtensions.PluginManager*.nupkg)[0].Path; |
| 88 | + $zip = (Resolve-Path .\artifacts\GitExtensions.PluginManager*.zip)[0].Path; |
| 89 | + $combined = ".\GitExtensions.PluginManager.$($env:APPVEYOR_BUILD_VERSION)$($env:version_suffix).combined-unsigned.zip" |
| 90 | + Compress-Archive -LiteralPath $nupkg, $zip -CompressionLevel NoCompression -DestinationPath $combined -Force |
| 91 | + } |
| 92 | +
|
74 | 93 | #---------------------------------# |
75 | 94 | # artifacts configuration # |
76 | 95 | #---------------------------------# |
77 | 96 |
|
78 | 97 | artifacts: |
79 | | -- path: .\artifacts\GitExtensions.PluginManager.*.zip |
80 | | -- path: .\artifacts\GitExtensions.PluginManager.*.nupkg |
| 98 | +- path: .\GitExtensions.PluginManager.*.combined-unsigned.zip |
81 | 99 | - path: .\artifacts\logs\*.binlog |
82 | 100 |
|
83 | 101 |
|
| 102 | +#---------------------------------# |
| 103 | +# artifacts deployment # |
| 104 | +#---------------------------------# |
| 105 | + |
| 106 | +deploy: |
| 107 | +- provider: Webhook |
| 108 | + on: |
| 109 | + ARTIFACT_SIGNING_ENABLED: true |
| 110 | + url: https://app.signpath.io/API/v1/7c19b2cf-90f7-4d15-9b12-1b615f7c18c4/Integrations/AppVeyor?ProjectKey=gitextensions.pluginmanager&SigningPolicyKey=release-signing |
| 111 | + on_build_success: true |
| 112 | + on_build_failure: false |
| 113 | + on_build_status_changed: false |
| 114 | + method: POST |
| 115 | + authorization: |
| 116 | + secure: IlLI/MbhdzmXF/WB2G84zYsDWePXJqHBWDb1zBPxxXvGgx0WRxzMZxuBsvCOcZvbPTRF+UcGp0d5/HT8xZUEjA== |
| 117 | + |
| 118 | + |
84 | 119 | # on build failure |
85 | 120 | on_failure: |
86 | 121 | - ps: | |
|
0 commit comments