forked from sll552/DiscordBee
-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
31 lines (31 loc) · 1.02 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
version: '{build}'
image: Visual Studio 2022
configuration: Release
before_build:
- ps: nuget restore
build:
project: DiscordBee.sln
verbosity: minimal
after_build:
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "false") {
Start-Process -FilePath "7z" -ArgumentList "a", "$env:APPVEYOR_PROJECT_NAME-$env:CONFIGURATION-$env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH-$env:APPVEYOR_BUILD_NUMBER.zip", "$env:APPVEYOR_BUILD_FOLDER\bin\$env:CONFIGURATION\*"
} else {
Start-Process -FilePath "7z" -ArgumentList "a", "$env:APPVEYOR_PROJECT_NAME-$env:CONFIGURATION-$env:APPVEYOR_REPO_TAG_NAME.zip", "$env:APPVEYOR_BUILD_FOLDER\bin\$env:CONFIGURATION\*"
}
artifacts:
- path: bin/$(configuration)/**/*
name: Plugin
- path: '*$(configuration)-*.zip'
name: Plugin-Package
deploy:
- provider: GitHub
tag: $(APPVEYOR_REPO_TAG_NAME)
auth_token:
secure: bDkjepIUlFRHs/1W8BpNMCgEBqtOkbp6BOlZgUEs2h1iA/n1TVbdnRKuBburxAQY
artifact: Plugin-Package
draft: false
force_update: true
on:
branch: master
APPVEYOR_REPO_TAG: true