Skip to content

Commit 167be30

Browse files
committed
Auto publish to NuGet on Tag
1 parent 92cfffe commit 167be30

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

appveyor.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ branches:
77
only:
88
- master
99

10-
configuration:
11-
- Debug
12-
- Release
10+
configuration: Release
1311

1412
platform: Any CPU
1513

@@ -27,11 +25,20 @@ test_script:
2725
- dotnet test "src\FlexMapper.UnitTests" -c %CONFIGURATION%
2826

2927
# after_build:
30-
# - dotnet pack "src\FlexMapper" -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o artifacts
28+
- dotnet pack "src\FlexMapper" -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o artifacts
3129

3230
artifacts:
3331
- path: artifacts\**\*.*
3432

3533
cache:
3634
- '%USERPROFILE%\.nuget\packages'
3735

36+
deploy:
37+
provider: NuGet
38+
api_key:
39+
secure: 2uMFkotaBEOwDusxxurI3dmBWqkDDQHPRRdpp6ML4r/mPbIPyD3pxgOsinRQ1Kkf
40+
skip_symbols: false
41+
symbol_server: # remove to push symbols to SymbolSource.org
42+
artifact: /.*\.nupkg/
43+
on:
44+
appveor_repo_tag: true # deploy only when creating a tag in GitHub (Release)

0 commit comments

Comments
 (0)