-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
appveyor.yml
40 lines (35 loc) · 1.5 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
32
33
34
35
36
37
38
39
40
version: 4.0.{build}
branches:
only:
- master
pull_requests:
do_not_increment_build_number: true
image: Visual Studio 2019
## temporary until 6.0.100 sdk is installed
install:
- ps: $urlCurrent = "https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.100/dotnet-sdk-6.0.100-win-x64.zip"
- ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
- ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
- ps: $tempFileCurrent = [System.IO.Path]::GetTempFileName()
- ps: (New-Object System.Net.WebClient).DownloadFile($urlCurrent, $tempFileCurrent)
- ps: Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory($tempFileCurrent, $env:DOTNET_INSTALL_DIR)
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
nuget:
disable_publish_on_pr: true
build_script:
- ps: dotnet nuget locals --clear all
- ps: dotnet restore Bet.AspNetCore.sln -v quiet
- ps: dotnet build Bet.AspNetCore.sln --no-restore -p:configuration=Release -p:Version=$($env:appveyor_build_version) -p:GeneratePackageOnBuild=true
- ps: dotnet pack Bet.AspNetCore.sln --no-build -p:configuration=Release -p:Version=$($env:appveyor_build_version) -o packages
test_script:
- ps: dotnet test test/Bet.AspNetCore.UnitTest/Bet.AspNetCore.UnitTest.csproj -c Release --no-build
artifacts:
- path: .\packages\**\*.nupkg
name: NuGet package
deploy:
- provider: NuGet
artifact: /NuGet/
api_key:
secure: a8sCawSwgb2kYDJAN+xTUvy+MH5jdJR+DmKakUmc/Xom1c+uxyvV+yvpSTJs+ypF
on:
branch: master