forked from TelegramBots/Telegram.Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
35 lines (35 loc) · 1.18 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
version: 10.0.0-alpha-{build}
pull_requests:
do_not_increment_build_number: true
branches:
except:
- gh-pages
image: Visual Studio 2015
init:
- ps: git config --global core.autocrlf input
cache:
- "C:\\Users\\appveyor\\.nuget\\packages -> **\\project.json"
configuration: Debug
before_build:
- ps: $projectJson = Get-ChildItem project.json -Recurse
- ps: $json = ConvertFrom-Json (Get-Content $projectJson.FullName -Raw -Encoding UTF8)
- ps: $json.version = $env:APPVEYOR_BUILD_VERSION
- ps: $json.buildOptions.xmlDoc = $False
- ps: Set-Content -Value (ConvertTo-Json $json -Depth 10) -Path $projectJson.FullName -Encoding UTF8
- ps: dotnet restore
build:
publish_nuget: true
publish_nuget_symbols: true
verbosity: normal
after_build:
- ps: "dotnet pack .\\src\\Telegram.Bot -c Debug"
- ps: "Get-ChildItem *.nupkg -Recurse | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }"
test: off
deploy:
- provider: NuGet
server: https://www.myget.org/F/telegram-bot/api/v2/package
api_key:
secure: Dl2/cPfGdESLPBMd7Y+CIQomwOgNQ2+rUTylGGzMb0FaJaL4WgPPf5lzkY5KD4V6
symbol_server: https://www.myget.org/F/telegram-bot/api/v2/package
on:
branch: master