-
Notifications
You must be signed in to change notification settings - Fork 17
/
appveyor.yml
33 lines (33 loc) · 855 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
image: Visual Studio 2022
branches:
only:
- master
- develop
- /release\/.+/
install:
- cinst gitversion.portable -y
- ps: dotnet tool install --global dotnet-setversion
before_build:
- nuget restore
- ps: $env:VERSION=$(gitversion /showvariable NuGetVersionV2)
- ps: cp README.md src/dotnet-setversion/README.md
build_script:
- ps: dotnet restore
- ps: cd src/dotnet-setversion; setversion $env:VERSION; dotnet pack -c Release -o release/; cd ../..
before_test:
- ps: cd test/integration;
test_script:
- ps: dotnet test -c Release;
after_test:
- ps: cd ../..
artifacts:
path: src/dotnet-setversion/release/*.nupkg
name: NuGet packages
deploy:
provider: NuGet
skip_symbols: false
api_key:
secure: 3J8lFUHKXya6PzDo37BA64VysvpCYLKkpnSbIS1FD2PX8ROWcJWJAj7WEHlraffQ
artifact: NuGet packages
on:
branch: master