forked from justalemon/SimplePassive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.appveyor.yml
More file actions
64 lines (55 loc) · 2.1 KB
/
.appveyor.yml
File metadata and controls
64 lines (55 loc) · 2.1 KB
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
58
59
60
61
62
63
64
# WARNING: We expect the Solution to be named exactly like the AppVeyor project
# For example: A project called NewProject needs a solution called NewProject.sln
# The Version to use and the Build Image
version: "1.0.0.{build}"
image: Visual Studio 2019
# This triggers a webhook to #appveyor on Discord with SkyHook
# https://github.com/Commit451/skyhook
notifications:
- provider: Webhook
url:
secure: >
RQOjbD0a6023xZNVZ7zzk7PjRpoF448yAGSM8koDLhmkmzUM5yPCgmaad8aJqIs8
RUNIyviWWVKgyVoHDnXu54LGOTNVOCWgVLopKG8FA/Ofnc/R3wb8e0Y1VLME2TDc
4OyE8nUxd78/lJY7qiz0pR1OZDgDregNYwczlizdDJNHSumbS17VNKQygVqdwoqd
# This patches the AssemblyInfo.cs for old csproj files
assembly_info:
patch: true
file: Properties\AssemblyInfo.cs
assembly_version: "{version}"
assembly_file_version: "{version}"
# Ditto, but for new csproj files (VS 2017 and newer)
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: "{version}"
package_version: "{version}"
assembly_version: "{version}"
file_version: "{version}"
informational_version: "{version}"
# If this build is from a tag, use the tag 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"))" }
# Restore Git Submodules and NuGet Packages
install:
- git submodule update --init --recursive
- nuget restore %APPVEYOR_PROJECT_NAME%.sln
# Build the solution with the same name as the AppVeyor project
build_script:
- msbuild %APPVEYOR_PROJECT_NAME%.sln /t:Build /p:Configuration=Release
# After building everything, package it in a 7zip and upload it as an Artifact
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