forked from TomGrobbe/vMenu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
40 lines (40 loc) · 1.76 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
36
37
38
39
40
pull_requests:
do_not_increment_build_number: false
image: Visual Studio 2017
configuration: Release
before_build:
- nuget restore
build:
parallel: true
project: vMenu.sln
include_nuget_references: true
verbosity: minimal
after_build:
- cmd: copy README.md ..\build\README.md
- cmd: copy LICENSE.md ..\build\LICENSE.md
- ps: Invoke-WebRequest -OutFile '..\build\__resource.lua' https://vespura.com/vmenu/__resource.lua
- cmd: if %APPVEYOR_REPO_TAG%==true (appveyor SetVariable -Name VERSION_NAME -Value %APPVEYOR_REPO_TAG_NAME%) else (appveyor SetVariable -Name VERSION_NAME -Value beta)
- cmd: 7z a vMenu-%VERSION_NAME%.zip -r ..\build\*
- cmd: appveyor PushArtifact vMenu-%VERSION_NAME%.zip
- cmd: if %APPVEYOR_REPO_TAG%==true (curl -F "content=New version :tada:! <@&540562517806809109>" -F "file=@vMenu-"%VERSION_NAME%".zip" %DISCORD_FILE_WEBHOOK%)
deploy:
- provider: GitHub
release: "[Release] vMenu $(VERSION_NAME)"
tag: $(VERSION_NAME)
artifact: vMenu-$(VERSION_NAME).zip
draft: true
prerelease: false
auth_token: $(github_auth)
on:
APPVEYOR_REPO_TAG: true
description: "vMenu version $(VERSION_NAME)."
after_deploy:
- ps: if($env:APPVEYOR_REPO_TAG -eq $True) {Invoke-RestMethod https://raw.githubusercontent.com/TomGrobbe/appveyor-discord-webhook/master/send.ps1 -o send.ps1; ./send.ps1 deploy $env:WEBHOOK_URL; rm send.ps1;}
on_success:
- ps: Invoke-RestMethod https://raw.githubusercontent.com/TomGrobbe/appveyor-discord-webhook/master/send.ps1 -o send.ps1
- ps: ./send.ps1 success $env:WEBHOOK_URL
- ps: rm send.ps1
on_failure:
- ps: Invoke-RestMethod https://raw.githubusercontent.com/TomGrobbe/appveyor-discord-webhook/master/send.ps1 -o send.ps1
- ps: ./send.ps1 failure $env:WEBHOOK_URL
- ps: rm send.ps1