forked from hvanbakel/CsprojToVs2017
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
41 lines (38 loc) · 1.41 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
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/Project2015To2017.csproj
- cmd: dotnet publish -f net46 -c Release -o ./out/net46 ./Project2015To2017/Project2015To2017.csproj
- cmd: 7z a ./Project2015To2017/out/CSProj2015To2017.zip ./Project2015To2017/out/*
artifacts:
- path: ./Project2015To2017/out/CSProj2015To2017.zip
name: out-zip
deploy:
release: CSProj2015To2017-v$(APPVEYOR_BUILD_VERSION)
description: 'Automatically built release v$(APPVEYOR_BUILD_VERSION).'
provider: GitHub
auth_token:
secure: "LYFGDMnT4oJLpCsZUkhL/oTnG3ZpQnsjaTc10DfTf/jbkXtzctRkXEu2ea3YnyqP" # your encrypted token from GitHub
artifact: out-zip # upload all NuGet packages to release assets
draft: false
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'