forked from scriban/scriban
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
39 lines (33 loc) · 990 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
33
34
35
36
37
38
39
version: 11.0.{build}
image: Visual Studio 2017
configuration: Release
install:
- ps: >-
cd src
nuget restore Scriban.sln
$env:SCRIBAN_BUILD_NUMBER = ([int]$env:APPVEYOR_BUILD_NUMBER).ToString("000")
$env:appveyor_nuget_push = 'false'
if(-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
if($env:appveyor_repo_tag -eq 'True') {
if($env:appveyor_repo_tag_name -match '^v[0-9]') {
$env:appveyor_nuget_push = 'true'
}
}
}
build:
project: src/Scriban.sln
verbosity: minimal
before_package:
- cmd: >-
msbuild /t:pack /p:Configuration=Release Scriban/Scriban.csproj
msbuild /t:Clean Scriban/Scriban.csproj
msbuild /t:pack /p:Configuration=Release;SignAssembly=true Scriban/Scriban.csproj
artifacts:
- path: src\Scriban\Bin\Release\*.nupkg
name: Scriban Nugets
deploy:
- provider: NuGet
api_key:
secure: 7cthHh+wYWZjhqxaxR6QObRaRnstvFkQOY7MkxIsC5kpQEBlKZXuinf0IybbYxJt
on:
appveyor_nuget_push: true