-
Notifications
You must be signed in to change notification settings - Fork 10
/
appveyor-release.yml
77 lines (62 loc) · 2.03 KB
/
appveyor-release.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
deploy:
- provider: NuGet
api_key:
secure: hTtp0t1aPpoDDP8CDkxeXiXdFW7y8ChrYOTZMxFz1ZAn4ltyt1Fwp6A7O34mV5Vw
- provider: NuGet
server: https://nuget.pkg.github.com/z4kn4fein/index.json
artifact: /.nupkg/
skip_symbols: true
username: z4kn4fein
api_key:
secure: TaIug8cHioxT2qDznFpGtDinZiDi+20pEMQZUVAATWCvGLG9Y5LrjaxDUQtGyt38
- provider: GitHub
tag: $(build_version)
release: Stashbox v$(build_version)
auth_token:
secure: TaIug8cHioxT2qDznFpGtDinZiDi+20pEMQZUVAATWCvGLG9Y5LrjaxDUQtGyt38
artifact: /.*\.nupkg|.*\.snupkg/
environment:
build_version: ''
image: Visual Studio 2022
configuration: Release
install:
- ps: |
$env:build_version = Get-Content ".version"
Update-AppveyorBuild -Version "$env:build_version-$env:appveyor_build_number"
dotnet tool install -g InheritDocTool
Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1' -OutFile dotnet-install.ps1
./dotnet-install.ps1 -Channel 7.0
./dotnet-install.ps1 -Channel 8.0
dotnet_csproj:
patch: true
file: 'src\stashbox.csproj'
version: $(build_version)
package_version: $(build_version)
assembly_version: $(build_version)
file_version: $(build_version)
informational_version: $(build_version)
before_build:
- dotnet restore stashbox.sln
build_script:
- dotnet build -c %configuration% /p:ContinuousIntegrationBuild=true stashbox.sln
test_script:
- dotnet test test\stashbox.tests.csproj -f net6.0 -c %configuration% --no-build
after_build:
- inheritdoc -o
- dotnet pack -c %configuration% /p:IncludeSymbols=true /p:PackageOutputPath=..\artifacts src\stashbox.csproj
artifacts:
- path: artifacts\Stashbox.*.nupkg
name: NuGet Packages
- path: artifacts\Stashbox.*.snupkg
name: NuGet Symbol Packages
notifications:
- provider: Email
to:
on_build_success: false
on_build_failure: true
on_build_status_changed: true
- provider: Slack
auth_token:
secure: /KAOQIEOWc7w1EUl6J01qNam+f+ujntrwh53yJ0zg4qRWsdfWbkjKP2UG7tQDW7/hSVJHqF7Hz/IPdS6Cp5ilsfgH6xYroLB/sawQ/pdC5k=
channel: '#ci'