-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
32 lines (31 loc) · 1016 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
31
32
version: 1.0.{build}
branches:
only:
- master
image: Visual Studio 2017
configuration: Release
environment:
nuget_api_key:
secure: a/a+mCGBoKlFFuQt0Fi6PsYb5r6LtYZK3Mu0iDKCby4vHNGWzhTywNAhNR8I9xMt
install:
- cmd: choco install gitversion.portable -pre -y
before_build:
- cmd: >-
dotnet restore
gitversion /l console /output buildserver /updateAssemblyInfo NHibernate.logging.serilog\AssemblyInfo.cs /ensureassemblyinfo
build:
verbosity: normal
after_build:
- cmd: dotnet pack "NHibernate.Logging.Serilog\NHibernate.Logging.Serilog.csproj" -c Release -o %APPVEYOR_BUILD_FOLDER%\nugets /p:Version=%GitVersion_NuGetVersion%
artifacts:
- path: nugets\*.*nupkg
name: NuGet Package
deploy:
- provider: NuGet
api_key:
secure: a/a+mCGBoKlFFuQt0Fi6PsYb5r6LtYZK3Mu0iDKCby4vHNGWzhTywNAhNR8I9xMt
on:
branch: master
APPVEYOR_REPO_TAG: True
after_deploy:
- ps: Get-ChildItem .\nugets\*.snupkg | % { dotnet nuget push $_.FullName -s https://api.nuget.org/v3/index.json -k $env:nuget_api_key }