-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
30 lines (27 loc) · 880 Bytes
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
version: 1.0.{build}
image: Visual Studio 2022
configuration: Release
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
install:
- ps: >-
$ErrorActionPreference = "Stop";
./versionize.ps1 $env:APPVEYOR_BUILD_NUMBER | %{ Update-AppveyorBuild -Version $_ };
$env:REPO_TAG_DESCRIPTION = (git tag -l --format='%(contents)' $env:APPVEYOR_REPO_TAG_NAME | Where-Object {$_}) -join "<br />";
Write-Host $env:REPO_TAG_DESCRIPTION;
before_build:
- cmd: dotnet restore
build:
verbosity: minimal
after_build:
- cmd: dotnet pack ShinySwitch\ShinySwitch.csproj /p:PackageVersion=%APPVEYOR_BUILD_VERSION%
artifacts:
- path: '*/**/*.nupkg'
deploy:
- provider: NuGet
api_key:
secure: rTAOxhsBekNlEb9IN6Iyy5mayYbiTTIWidYKB4f1ZyRbwiIeqjFr0x6qDZQM6RYP