-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathappveyor.yml
More file actions
47 lines (47 loc) · 1.45 KB
/
appveyor.yml
File metadata and controls
47 lines (47 loc) · 1.45 KB
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
image: Visual Studio 2022
environment:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
IGNORE_NORMALISATION_GIT_HEAD_MOVE: 1
branches:
only:
- master
- develop
- /release\/.+/
install:
# Workaround from GitHub issue #3984 to install .NET 10 SDK
- ps: |
Invoke-WebRequest -Uri 'https://dot.net/v1/dotnet-install.ps1' -UseBasicParsing -OutFile "$env:temp\dotnet-install.ps1"
& $env:temp\dotnet-install.ps1 -Architecture x64 -Version '10.0.100' -InstallDir "$env:ProgramFiles\dotnet"
- choco install gitversion.portable -y
- ps: dotnet tool install --global dotnet-setversion
before_build:
- dotnet --version # Verify .NET 10 is active
- 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: 5v2Aur7bboVNRpX2K/cIOruZgXySbwiBXGGCS+VBBM0TSv3bFQfIjgfPCyDlyw3A
artifact: NuGet packages
on:
branch: master