forked from Malven/Discord.OAuth2
-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
25 lines (22 loc) · 934 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
version: build-{build}
branches:
only:
- master
image: Visual Studio 2019
nuget:
disable_publish_on_pr: true
pull_requests:
do_not_increment_build_number: true
clone_folder: C:\Projects\Discord.OAuth2
environment:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
init:
- ps: $Env:BUILD = "$($Env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0"))"
install:
- cmd: git submodule update --init --recursive
build_script:
- ps: appveyor-retry dotnet restore Discord.OAuth2.sln -v Minimal /p:BuildNumber="$Env:BUILD" /p:IsTagBuild="$Env:APPVEYOR_REPO_TAG"
- ps: dotnet build Discord.OAuth2.sln -c Release /p:BuildNumber="$Env:BUILD" /p:IsTagBuild="$Env:APPVEYOR_REPO_TAG"
after_build:
- ps: dotnet pack "src\Discord.OAuth2\Discord.OAuth2.csproj" -c Release -o "../../artifacts" --no-build /p:BuildNumber="$Env:BUILD" /p:IsTagBuild="$Env:APPVEYOR_REPO_TAG"
- ps: Get-ChildItem C:\artifacts\*.nupkg | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }