forked from stdray/Seq.App.Telegram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
28 lines (21 loc) · 863 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
version: '{build}'
branches:
only:
- master
cache:
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
- '%USERPROFILE%\.nuget\packages'
nuget:
project_feed: true
install:
- choco install gitversion.portable -pre -y
before_build:
- cmd: gitversion /l console /output buildserver /updateAssemblyInfo
- ps: Update-AppveyorBuild -Version $GitVersion_NuGetVersion
after_build:
- cmd: cd src/Seq.App.Telegram
- cmd: dotnet publish -c Release -o ./obj/publish
- cmd: dotnet pack --no-build -c Release -o ./bin/nuget -p:PackageVersion="%GitVersion_NuGetVersion%"
- ps: Get-ChildItem -Recurse *.nupkg | % { Push-AppveyorArtifact $_ -FileName $_.Name }
- ps: Get-ChildItem -Recurse *.nupkg | % { dotnet nuget push -s "https://api.nuget.org/v3/index.json" -k $env:NuGet_Key $_.FullName }