forked from TomGrobbe/vMenu
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
34 lines (34 loc) · 1.32 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
pull_requests:
do_not_increment_build_number: false
image: Visual Studio 2019
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\net452\README.md
- cmd: copy LICENSE.md ..\build\net452\LICENSE.md
- ps: Invoke-WebRequest -OutFile '..\build\net452\fxmanifest.lua' https://vespura.com/vmenu/fxmanifest.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-%APPVEYOR_REPO_COMMIT:~0,7%)
- ps: (gc '..\build\net452\fxmanifest.lua') -replace 'versiongoeshere', $env:VERSION_NAME | Out-File -encoding ASCII '..\build\net452\fxmanifest.lua'
- cmd: cd ..\build\net452\ && 7z a "..\..\vMenu\vMenu-%VERSION_NAME%.zip" -r * && cd ..\..\vMenu\
- cmd: appveyor PushArtifact vMenu-%VERSION_NAME%.zip
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)."
on_success:
- cmd: appveyor/on_success.bat
on_failure:
- cmd: appveyor/on_failure.bat