-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathappveyor.yml
38 lines (38 loc) · 1015 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
image: Visual Studio 2022
branches:
only:
- master
- develop
- /release\/.+/
install:
- choco install gitversion.portable -y
- ps: dotnet tool install --global dotnet-setversion
before_build:
- nuget restore
- ps: |
if ($env:APPVEYOR_REPO_BRANCH -eq 'master') {
$env:VERSION = (gitversion /showvariable MajorMinorPatch)
} else {
$env:VERSION = (gitversion /showvariable FullSemVer)
}
- 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: KAu0YxpiSIMsKj+Rpy3rc1AGN/WYljKE2Mt8f72UbMzvaLPGllHUFw8UDZ9rwsUY
artifact: NuGet packages
on:
branch: master