|
1 | 1 |
|
2 |
| -#nuget version is nly changed by RELEASE TAG |
| 2 | +#nuget version is only changed by RELEASE TAG |
3 | 3 | version: 6.2.0-dev-{build}
|
4 | 4 |
|
5 | 5 | image: Visual Studio 2022
|
| 6 | + |
| 7 | +# Set the signing policy slug according to branch |
| 8 | +environment: |
| 9 | + SIGNPATH_SIGNING_POLICY_SLUG: test-signing |
| 10 | + ARTIFACT_CONFIGURATION_SLUG: o2p2 |
| 11 | + SIGNPATH_PROJECT_SLUG : odata2poco |
| 12 | + |
| 13 | + |
6 | 14 | pull_requests:
|
7 | 15 | do_not_increment_build_number: false
|
8 | 16 |
|
9 | 17 | init:
|
10 | 18 | - ps: |
|
11 | 19 | git config --global core.autocrlf input
|
12 | 20 | $env:CAN_PUBLISH = $true
|
| 21 | + $env:O2P_VERSION = $env:APPVEYOR_BUILD_VERSION |
| 22 | + Write-Host "APPVEYOR_BUILD_VERSION='$env:APPVEYOR_BUILD_VERSION'" -ForegroundColor Yellow |
13 | 23 |
|
14 | 24 | if ($env:APPVEYOR_REPO_TAG -eq "true") {
|
| 25 | + $env:SIGNPATH_SIGNING_POLICY_SLUG = 'release-signing' |
15 | 26 | $ver = $env:APPVEYOR_REPO_TAG_NAME
|
16 |
| - if($ver.StartsWith("v") -eq $true) { $ver = $ver.Substring(1) } |
| 27 | + if($ver.StartsWith("v") -eq $true) { |
| 28 | + $ver = $ver.Substring(1) |
| 29 | + $env:O2P_VERSION = $ver |
| 30 | + } |
17 | 31 | try
|
18 | 32 | {
|
19 | 33 | Update-AppveyorBuild -Version $ver
|
@@ -59,62 +73,26 @@ after_test:
|
59 | 73 | $allow_push=$env:APPVEYOR_REPO_TAG -eq "true"
|
60 | 74 | .\scripts\build_choco $version $allow_push
|
61 | 75 | - ps: .\scripts\checksum.ps1 $env:APPVEYOR_BUILD_VERSION
|
| 76 | +- 7z a -tzip .\build\odata2poco-%O2P_VERSION%-unsigned.zip .\build\*.nupkg .\build\*.snupkg .\build\*.exe .\chocolatey\*.nupkg |
62 | 77 |
|
63 |
| -artifacts: |
64 |
| -- path: .\build\OData2Poco.dotnet.o2pgen*.nupkg |
65 |
| - name: global_tool |
66 |
| -- path: .\build\o2pgen.exe |
67 |
| - name: o2p_exe |
68 |
| -- path: .\build\OData2Poco.CommandLine.*.nupkg |
69 |
| - name: o2pgen |
70 |
| -- path: .\build\OData2Poco.*.nupkg |
71 |
| - name: lib |
72 |
| -- path: '.\build\OData2Poco.*.snupkg' |
73 |
| - name: symbol |
74 |
| -- path: '.\chocolatey\*.nupkg' |
75 |
| - name: choco_pkg |
76 |
| -- path: .\build\schecksum256-*.txt |
77 |
| - name: sha256 |
| 78 | +artifacts: |
| 79 | +- path: .\build\odata2poco-%O2P_VERSION%-unsigned.zip |
| 80 | + name: o2p_zip |
78 | 81 |
|
79 |
| -deploy: |
80 | 82 |
|
81 |
| -#chocolatey |
82 |
| -- provider: NuGet |
83 |
| - server: https://push.chocolatey.org |
84 |
| - api_key: |
85 |
| - secure: CUR2VQy2d8EeiFJ//LEcn7BJrbXjVhuAi4Te/7Vtn3kpzA2LSHInh21H3Z38H57Q |
86 |
| - on: |
87 |
| - APPVEYOR_REPO_TAG: true # Deploy on tag push only. |
88 |
| - # branch: master # Release from master branch only. |
89 |
| - artifact: choco_pkg |
90 |
| - |
91 |
| -# Nuget |
92 |
| -- provider: NuGet |
93 |
| - api_key: |
94 |
| - secure: XBvbm69UE+d1cuM8+VBfwMyjHDcAa79w0TBygcZsPZcl88AaLKN1EvI7KI8/K9Am |
95 |
| - on: |
96 |
| - APPVEYOR_REPO_TAG: true # Deploy on tag push only. |
97 |
| - # branch: master # Release from master branch only. |
98 |
| - artifact: global_tool,o2pgen,lib,symbol |
99 |
| - |
| 83 | +deploy: |
100 | 84 | #Github
|
101 | 85 | - provider: GitHub
|
102 | 86 | auth_token:
|
103 | 87 | secure: sB33uLo96nR+LGmYLdPmY/segb6d4O061N2e8Nbz6iyHg82D0RysMxWE5JKnXmU+
|
104 |
| - artifact: /.*(\.|\.s)nupkg|o2p_exe|sha256/ |
| 88 | + artifact: o2p_zip |
105 | 89 | prerelease: false
|
106 |
| - on: |
| 90 | + draft: true |
| 91 | + on: |
107 | 92 | APPVEYOR_REPO_TAG: true
|
108 |
| - |
109 |
| -# myget |
110 |
| -- provider: NuGet |
111 |
| - server: https://www.myget.org/F/odata2poco/api/v2/package |
112 |
| - api_key: |
113 |
| - secure: QAHjX2gqddFX2cNhMNqweMTGQ89q++ezKnQvdAcinY5D1rwbj2vkWeFsTykm4koA |
114 |
| - symbol_server: https://www.myget.org/F/odata2poco/api/v2/package |
115 |
| - on: |
116 |
| - branch: develop |
117 |
| - artifact: global_tool,o2pgen,lib,symbol,choco_pkg |
118 |
| - |
119 |
| - |
120 |
| - |
| 93 | + |
| 94 | +- provider: Webhook |
| 95 | + url: https://app.signpath.io/API/v1/%SIGNPATH_ORGANIZATION_ID%/Integrations/AppVeyor?ProjectSlug=%SIGNPATH_PROJECT_SLUG%&SigningPolicySlug=%SIGNPATH_SIGNING_POLICY_SLUG%&ArtifactConfigurationSlug=%ARTIFACT_CONFIGURATION_SLUG% |
| 96 | + authorization: 'Bearer %SIGNPATH_CI_USER_TOKEN%' |
| 97 | + on: |
| 98 | + APPVEYOR_REPO_TAG: true |
0 commit comments