-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathappveyor.yml
41 lines (34 loc) · 854 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
39
40
41
image: Visual Studio 2022
configuration: Release
version: '{build}'
install:
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "false")
{
$env:COMMIT_DESCRIPTION = git describe --tags
}
else
{
$env:COMMIT_DESCRIPTION = $env:APPVEYOR_REPO_TAG_NAME
}
dotnet_csproj:
patch: true
file: 'GitHubJwt\GitHubJwt.csproj'
version: $(commit_description)
before_build:
- ps: Update-AppveyorBuild -Version $env:COMMIT_DESCRIPTION
- ps: Add-AppveyorMessage "Build version is $env:COMMIT_DESCRIPTION"
- cmd: dotnet restore
build:
project: GitHubJwt.sln
test_script:
- cmd: dotnet test GitHubJwt.Tests/GitHubJwt.Tests.csproj
artifacts:
- path: '**/*.nupkg'
name: Nuget Packages
deploy:
- provider: NuGet
api_key:
secure: vX9Z47PLlPoHwlR6n7pJd7EyvyXiZCAbsXkKfNuGG2nPkO5pj59sEwS2NTs6lNTf
on:
appveyor_repo_tag: true