Skip to content

Commit a91d3c0

Browse files
authored
Update appveyor.yml
updated to push nuget package on tag
1 parent e28c272 commit a91d3c0

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

appveyor.yml

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
1+
version: 1.0.{build}
2+
branches:
3+
only:
4+
- master
15
image: Visual Studio 2017
6+
configuration: Release
27
install:
3-
- choco install gitversion.portable -pre -y
4-
5-
assembly_info:
6-
patch: false
7-
8+
- cmd: choco install gitversion.portable -pre -y
89
before_build:
9-
- nuget restore
10-
- ps: gitversion /l console /output buildserver /updateAssemblyInfo
10+
- cmd: >-
11+
nuget restore
1112
13+
gitversion /l console /output buildserver /updateAssemblyInfo
1214
build:
13-
project: NHibernate.Logging.Serilog.sln
14-
15-
after_build:
16-
- cmd: ECHO nuget pack NHibernate.Logging.Serilog\NHibernate.Logging.Serilog.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
17-
- cmd: nuget pack NHibernate.Logging.Serilog\NHibernate.Logging.Serilog.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
18-
- cmd: appveyor PushArtifact "NHibernate.Logging.Serilog\NHibernate.Logging.Serilog.nuspec.%GitVersion_NuGetVersion%.nupkg"
15+
publish_nuget: true
16+
publish_nuget_symbols: true
17+
verbosity: normal
18+
artifacts:
19+
- path: '*.nupkg'
20+
name: NuGet Package
21+
deploy:
22+
- provider: NuGet
23+
api_key:
24+
secure: k1LO5/Ap8IjBhpszOmEfhRdcpY3PI+6uPLaYufsA7L+J+Jctg1QXKTSAiCwC3fVO
25+
on:
26+
branch: master
27+
APPVEYOR_REPO_TAG: True

0 commit comments

Comments
 (0)