forked from sipsorcery-org/sipsorcery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
82 lines (82 loc) · 2.9 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
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
78
79
80
81
82
version: 4.0.{build}
branches:
except:
- gh-pages
- mac-ci
- ubuntu-ci
- wsl-ci
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
access_token:
# Token for github pages publishing.
secure: 21m76jAVvcu7oACAHFnfCBltcwon+r5ZI3avfRmrNFAqJMn6RfLXwpBhPcJ617tD
image: Visual Studio 2019
configuration: Release
before_build:
- cmd: nuget restore -DisableParallelProcessing src\SIPSorcery.sln
build:
project: src\SIPSorcery.sln
publish_nuget: true
publish_nuget_symbols: true
verbosity: quiet
test:
assemblies:
only:
- '**\\SIPSorcery.UnitTests.dll'
on_success:
- ps: |
if($env:APPVEYOR_REPO_BRANCH -eq "master" -and -Not $env:APPVEYOR_PULL_REQUEST_TITLE)
{
git config --global credential.helper store
Add-Content "$HOME\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n" -NoNewline
git config --global user.email "aaron@sipsorcery.com"
git config --global user.name "Aaron Clauson"
git fetch
git checkout gh-pages -q
git merge master
choco install docfx -y
& docfx docfx\docfx.json
if ($lastexitcode -ne 0){
throw [System.Exception] "docfx build failed with exit code $lastexitcode."
}
git status
git add -A
git commit -am "Appveyor CI updates"
git push origin gh-pages -q
}
deploy:
- provider: NuGet
server: # remove to push to NuGet.org
api_key:
secure: MMAD8YSvIgFD6mUWB2tdEGzBNbyfW/9TeB+yN325nQ/nHJMLhv2hBYan1CU1O60z
skip_symbols: false
symbol_server: # remove to push symbols to SymbolSource.org
artifact: /.*\.nupkg/
on:
# branch: master # release from master branch only
APPVEYOR_REPO_TAG: true # deploy on tag push only
- provider: NuGet
server: https://nuget.pkg.github.com/sipsorcery/index.json
artifact: /.*(\.|\.s)nupkg/
username: sipsorcery
api_key:
secure: E58r+OknoQn8+bsPRT6l3U2K4kfOpDiGCo1C75LkVg+R/RBHpY//J8UCXEfVvyRB
on:
APPVEYOR_REPO_TAG: true # deploy on tag push only
- provider: NuGet
server: https://nuget.pkg.github.com/sipsorcery/index.json
artifact: /.*(\.|\.s)nupkg/
username: sipsorcery
api_key:
secure: E58r+OknoQn8+bsPRT6l3U2K4kfOpDiGCo1C75LkVg+R/RBHpY//J8UCXEfVvyRB
on:
APPVEYOR_REPO_TAG: true # deploy on tag push only
# - provider: GitHub
# artifact: /.*\.nupkg/ # upload all NuGet packages to release assets
# draft: true
# prerelease: true
# auth_token:
# secure: E58r+OknoQn8+bsPRT6l3U2K4kfOpDiGCo1C75LkVg+R/RBHpY//J8UCXEfVvyRB
# on:
# branch: master # release from master branch only
# APPVEYOR_REPO_TAG: true # deploy on tag push only