|
1 | | -#---------------------------------# |
2 | | -# general configuration # |
3 | | -#---------------------------------# |
4 | | - |
5 | | -# version format |
6 | | -version: 3.2.0.{build} |
7 | | - |
8 | | -# version suffix, if any (e.g. '-RC1', '-beta' otherwise '') |
9 | | -environment: |
10 | | - version_suffix: '' |
11 | | - |
12 | | -#---------------------------------# |
13 | | -# environment configuration # |
14 | | -#---------------------------------# |
15 | | - |
16 | | -nuget: |
17 | | - disable_publish_on_pr: true |
18 | | - |
19 | | -# Build worker image (VM template) |
20 | | -image: Visual Studio 2022 |
21 | | - |
22 | | -# enable patching of Directory.Build.props |
23 | | -dotnet_csproj: |
24 | | - patch: true |
25 | | - file: '**\*.props' |
26 | | - version: '{version}' |
27 | | - assembly_version: '{version}' |
28 | | - file_version: '{version}' |
29 | | - informational_version: '{version}$(version_suffix)' |
30 | | - package_version: '{version}$(version_suffix)' |
31 | | - |
32 | | -#---------------------------------# |
33 | | -# build configuration # |
34 | | -#---------------------------------# |
35 | | - |
36 | | -# scripts to run before build |
37 | | -before_build: |
38 | | -- ps: nuget restore .\GitExtensions.GerritPlugin.sln -Verbosity quiet |
39 | | - |
40 | | -# build configuration |
41 | | -configuration: Release |
42 | | - |
43 | | -build: |
44 | | - # enable MSBuild parallel builds |
45 | | - parallel: true |
46 | | - # MSBuild verbosity level |
47 | | - verbosity: quiet |
48 | | - |
49 | | -#---------------------------------# |
50 | | -# artifacts configuration # |
51 | | -#---------------------------------# |
52 | | - |
53 | | -artifacts: |
54 | | -- path: '**\GitExtensions.GerritPlugin.*.nupkg' |
55 | | - name: NuGet |
56 | | - |
57 | | -deploy: |
58 | | -- provider: NuGet |
59 | | - name: production |
60 | | - artifact: /GitExtensions.GerritPlugin.*\.nupkg/ |
61 | | - api_key: |
62 | | - secure: Cu5mvoCI+zw9j2rAhznAyc+pqunWrR9EodrrLyufOGMF10YahzhvyQWfk72an+Fm |
63 | | - skip_symbols: false |
64 | | - on: |
65 | | - appveyor_repo_tag: true |
| 1 | +#---------------------------------# |
| 2 | +# general configuration # |
| 3 | +#---------------------------------# |
| 4 | + |
| 5 | +# version format |
| 6 | +version: 3.2.0.{build} |
| 7 | + |
| 8 | +# version suffix, if any (e.g. '-RC1', '-beta' otherwise '') |
| 9 | +environment: |
| 10 | + # Disable the .NET logo in the console output. |
| 11 | + DOTNET_NOLOGO: true |
| 12 | + # Disable the .NET first time experience to skip caching NuGet packages and speed up the build. |
| 13 | + DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true |
| 14 | + version_suffix: '' |
| 15 | + |
| 16 | +#---------------------------------# |
| 17 | +# environment configuration # |
| 18 | +#---------------------------------# |
| 19 | + |
| 20 | +nuget: |
| 21 | + disable_publish_on_pr: true |
| 22 | + |
| 23 | +# Build worker image (VM template) |
| 24 | +image: Visual Studio 2022 |
| 25 | + |
| 26 | +# enable patching of Directory.Build.props |
| 27 | +dotnet_csproj: |
| 28 | + patch: true |
| 29 | + file: '**\*.props' |
| 30 | + version: '{version}' |
| 31 | + assembly_version: '{version}' |
| 32 | + file_version: '{version}' |
| 33 | + informational_version: '{version}$(version_suffix)' |
| 34 | + package_version: '{version}$(version_suffix)' |
| 35 | + |
| 36 | +# Install .NET 10 SDK (not pre-installed on AppVeyor VS2022 image) |
| 37 | +install: |
| 38 | +- ps: | |
| 39 | + # Install the required .NET SDK |
| 40 | + Invoke-WebRequest "https://dot.net/v1/dotnet-install.ps1" -OutFile "./dotnet-install.ps1" |
| 41 | + ./dotnet-install.ps1 -JsonFile global.json -InstallDir 'C:\Program Files\dotnet' |
| 42 | + # Remove the script so it doesn't "pollute" the build |
| 43 | + Remove-Item -Path .\dotnet-install.ps1 |
| 44 | +
|
| 45 | +#---------------------------------# |
| 46 | +# build configuration # |
| 47 | +#---------------------------------# |
| 48 | + |
| 49 | +# build configuration |
| 50 | +configuration: Release |
| 51 | + |
| 52 | +build_script: |
| 53 | +- ps: | |
| 54 | + dotnet restore .\GitExtensions.GerritPlugin.sln --verbosity quiet --nologo -bl:restore.binlog |
| 55 | +
|
| 56 | +- ps: | |
| 57 | + dotnet publish .\GitExtensions.GerritPlugin.sln --configuration Release --no-restore --verbosity quiet --nologo -bl:msbuild.binlog |
| 58 | +
|
| 59 | +#---------------------------------# |
| 60 | +# artifacts configuration # |
| 61 | +#---------------------------------# |
| 62 | + |
| 63 | +artifacts: |
| 64 | +- path: '**\GitExtensions.GerritPlugin.*.nupkg' |
| 65 | + name: NuGet |
| 66 | +- path: '*.binlog' |
| 67 | + name: Binlogs |
| 68 | + |
| 69 | +deploy: |
| 70 | +- provider: NuGet |
| 71 | + name: production |
| 72 | + artifact: /GitExtensions.GerritPlugin.*\.nupkg/ |
| 73 | + api_key: |
| 74 | + secure: Cu5mvoCI+zw9j2rAhznAyc+pqunWrR9EodrrLyufOGMF10YahzhvyQWfk72an+Fm |
| 75 | + skip_symbols: false |
| 76 | + on: |
| 77 | + appveyor_repo_tag: true |
0 commit comments