-
Notifications
You must be signed in to change notification settings - Fork 7
/
appveyor.yml
31 lines (31 loc) · 1.19 KB
/
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
31
image: Visual Studio 2022
install:
- ps: $env:BuildNumber= $env:APPVEYOR_BUILD_NUMBER
- ps: $env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = true
- ps: $env:NUGET_XMLDOC_MODE = "skip"
- ps: $env:DOTNET_CLI_TELEMETRY_OPTOUT = 1
- ps: $IsMasterBranch = ($env:APPVEYOR_REPO_BRANCH -eq "master" -And -not $env:APPVEYOR_PULL_REQUEST_NUMBER)
- ps: $IsDevBranch = ($env:APPVEYOR_REPO_BRANCH -eq "dev" -And -not $env:APPVEYOR_PULL_REQUEST_NUMBER)
# Uncomment to download a specific version of dotnet
- ps: Invoke-WebRequest "https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.ps1" -OutFile "dotnet-install.ps1"
- ps: .\dotnet-install.ps1 --Version 8.0.401
build_script:
- dotnet restore
- dotnet build -c Release
- ps: if ($IsMasterBranch -or $IsDevBranch) { dotnet pack -c Release --no-build }
init:
- dotnet --version
- node --version
- npm --version
- git config --global core.autocrlf true
artifacts:
- path: '**\*.nupkg'
deploy:
- provider: NuGet
on:
branch: master
server: https://www.nuget.org/api/v2/package
api_key:
secure: jkH4D4OSooevIdRKb14SOWgt5U9+cCiOS4+DU947SszReOBYmT9MoknCw7fC3eZk
skip_symbols: true
artifact: /.*\.nupkg/