-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
57 lines (48 loc) · 2.15 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# AppVeyor template for GTA IV/EFLC/V C# Mods
# This should be changed after every major release
version: "1.1.0.{build}"
# The AppVeyor image to use, usually the most up-to-date
image: Visual Studio 2017
# NOTE: This is meant to be used with the Visual Studio templates
# Check https://github.com/justalemon/RageVSTemplates for more info
# Send a Discord notification to notify the build progress
# Uses SkyHook: https://github.com/Commit451/skyhook
notifications:
- provider: Webhook
url:
secure: RQOjbD0a6023xZNVZ7zzk7PjRpoF448yAGSM8koDLhmkmzUM5yPCgmaad8aJqIs8RUNIyviWWVKgyVoHDnXu54LGOTNVOCWgVLopKG8FA/Ofnc/R3wb8e0Y1VLME2TDc4OyE8nUxd78/lJY7qiz0pR1OZDgDregNYwczlizdDJNHSumbS17VNKQygVqdwoqd
# Assembly patching: Change the Product Version and File Version
assembly_info:
patch: true
file: Properties\AssemblyInfo.cs
assembly_version: "{version}"
assembly_file_version: "{version}"
# Some simple stuff: If this is a tag, use it as the version without the V at the start
init:
- ps: if ($env:APPVEYOR_REPO_TAG -eq "true") { Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_TAG_NAME.TrimStart("v"))" }
# During the install, restore Git Submodules and NuGet Packages
install:
- git submodule update --init --recursive
- nuget restore %APPVEYOR_PROJECT_NAME%.sln
# On my projects, the Solution name is equal to the Project/Repo name
# So build the Solution File that is called just like the repo
build_script:
- msbuild %APPVEYOR_PROJECT_NAME%.sln /t:Build /p:Configuration=Release
# After the build, package the output files from the respective folder
# REMEMBER: Set the output location to "..\bin\Debug\" and "..\bin\Release\"
# If you used the Visual Studio templates, this is done automatically
after_build:
- 7z a %APPVEYOR_PROJECT_NAME%.7z %APPVEYOR_BUILD_FOLDER%\bin\Release\*
- appveyor PushArtifact %APPVEYOR_PROJECT_NAME%.7z
# If this is a tag, deploy the 7zip file(s) to GitHub Releases
deploy:
release: v$(APPVEYOR_BUILD_VERSION)
provider: GitHub
auth_token:
secure: "DkvKC8KRj8AipGu/oWW/J2e6jMWt2xXQfKU7oefFMsp0ZMfzz+OR9Y9XpML+ZmG4"
artifact: /.*\.7z/
draft: false
prerelease: false
on:
branch: master
appveyor_repo_tag: true