forked from mysticmind/reversemarkdown-net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
43 lines (32 loc) · 1.23 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
42
43
version: build-{build}
configuration: Release
os: Visual Studio 2022
environment:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
TARGET_BUILD_VERSION: '3.24.0'
NUGET_DEPLOY_KEY:
secure: iGLl9LCDfrevtXMZSzGsL00+nm/hVrFTLpbcgMuTP4S4El6/f09KhrsHAGj9VnCS
nuget:
disable_publish_on_pr: true
before_build:
- dotnet --info
- dotnet restore .\src\ReverseMarkdown.sln
build_script:
- dotnet build .\src\ReverseMarkdown.sln --configuration Release /p:Version=%TARGET_BUILD_VERSION%
test_script:
- dotnet test .\src\ReverseMarkdown.Test\ReverseMarkdown.Test.csproj --configuration Release
after_test:
- dotnet pack .\src\ReverseMarkdown --configuration Release /p:Version=%TARGET_BUILD_VERSION%
artifacts:
- path: '**\ReverseMarkdown.*.*nupkg' # find all NuGet packages recursively
deploy:
provider: NuGet
api_key: $(NUGET_DEPLOY_KEY)
artifact: /.*\.nupkg/
on:
APPVEYOR_REPO_TAG: true
after_deploy: # workaround to publish snupkg to NuGet
- ps: Get-ChildItem -Path *.snupkg -Recurse | % { dotnet nuget push $_.FullName -s https://api.nuget.org/v3/index.json -k $env:NUGET_DEPLOY_KEY }
on_failure:
- ps: Get-ChildItem *.received.* -recurse | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }