forked from fmbot-discord/fmbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
29 lines (29 loc) · 822 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
version: '{build}-{branch}'
pull_requests:
do_not_increment_build_number: true
image: Visual Studio 2022
configuration: Release
init:
- ps: $branch = $env:APPVEYOR_REPO_BRANCH -replace '\W', '-'; $env:ASSEMBLY_INFORMATIONAL_VERSION = if ($branch -eq "main") { $env:APPVEYOR_BUILD_VERSION } else { "$env:APPVEYOR_BUILD_VERSION-$branch" }
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
nuget:
account_feed: true
project_feed: true
before_build:
- ps: cd src
- ps: nuget restore
build_script:
- dotnet publish -c Release
artifacts:
- path: src\FMBot.Bot\bin\$(configuration)\net6.0\publish
name: BinaryRelease
- path: BinaryFiles
name: BinaryFiles
deploy: on