forked from hvanbakel/CsprojToVs2017
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
49 lines (45 loc) · 1.69 KB
/
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
40
41
42
43
44
45
46
47
48
49
version: 1.5.{build}
skip_tags: true
image:
- Visual Studio 2017
configuration:
- Release
pull_requests:
do_not_increment_build_number: true
skip_branch_with_pr: true
before_build:
- cmd: nuget restore
build:
parallel: true
verbosity: minimal
before_test:
- cmd: Dotnet test "Project2015To2017Tests\Project2015To2017Tests.csproj"
after_build:
- cmd: dotnet publish -f netcoreapp1.1 -c Release -o ./out/netcoreapp1.1 ./Project2015To2017.Console/Project2015To2017.Console.csproj
- cmd: dotnet publish -f net46 -c Release -o ./out/net46 ./Project2015To2017.Console/Project2015To2017.Console.csproj
- cmd: 7z a ./Project2015To2017/out/CSProj2015To2017.zip ./Project2015To2017.Console/out/*
artifacts:
- path: ./Project2015To2017/out/CSProj2015To2017.zip
name: out-zip
- path: Project2015To2017\bin\$(configuration)\Project2015To2017.**.nupkg
name: nupkg
deploy:
- provider: NuGet
api_key:
secure: i6ZaMLxF/Jbkh7SgDJuFIwpcrXl1BcNI5vd5Re33EEQV7PrZ71F6MpuIDF7glY/o
skip_symbols: false
artifact: nupkg
- provider: GitHub
release: CSProj2015To2017-v$(APPVEYOR_BUILD_VERSION)
description: 'Automatically built release v$(APPVEYOR_BUILD_VERSION).'
auth_token:
secure: "LYFGDMnT4oJLpCsZUkhL/oTnG3ZpQnsjaTc10DfTf/jbkXtzctRkXEu2ea3YnyqP" # your encrypted token from GitHub
artifact: out-zip # upload all NuGet packages to release assets
draft: true
prerelease: true
on:
branch: master # deploy on tag push only
# build cache to preserve files/folders between builds
cache:
- packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
- '%LocalAppData%\NuGet\Cache'