-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
30 lines (29 loc) · 996 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
version: 1.0.{build}
image: Visual Studio 2019
install:
- choco install gitversion.portable -pre -y
before_build:
- cmd: dotnet --version
- ps: gitversion /l console /output buildserver /updateAssemblyInfo
- cmd: dotnet restore ./src/TwentyTwenty.BaseLine/TwentyTwenty.BaseLine.csproj
build_script:
- cmd: dotnet pack ./src/TwentyTwenty.BaseLine/TwentyTwenty.BaseLine.csproj --no-restore -c Release -p:PackageVersion=%GitVersion_NuGetVersion%
test: off
artifacts:
- path: '**\*.nupkg'
deploy:
- provider: NuGet
api_key:
secure: hMPnTN277BiN+kPg5JsdoAlSFIV1XveuzU5Yo/+w0NaZ8fwyY6fC9pIYyXvCVVrz
artifact: /.*\.nupkg/
on:
appveyor_repo_tag: true
- provider: GitHub
release: "%GitVersion_NuGetVersion%"
description: 'TwentyTwenty.BaseLine'
auth_token:
secure: fd/+7iqe48Pb5+TSjRLgl4uEP4FvKjAv8xs0MI+cgYPJ3QX2/cBdfJt2E6fbwHFr
artifact: /.*\.nupkg/
draft: true
on:
appveyor_repo_tag: true # deploy on tag push only