forked from chummer5a/chummer5a
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
39 lines (39 loc) · 1.48 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
version: 5.181.{build}.0
branches:
only:
- master
skip_tags: true
configuration: Debug
platform: x86
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
environment:
SolutionDir: C:\projects\chummer5a\
install:
- ps: "Write-host $SolutionDir\n\n$Assemblyfile = \"C:\\projects\\chummer5a\\Chummer\\Properties\\AssemblyInfo.cs\"\n\n$RegularExpression = [regex] 'AssemblyVersion\\(\\\"(.*)\\\"\\)'\n \n\n# Get the Content of the file and store it in the variable \n$fileContent = Get-Content $assemblyFile\n#$fileContent\n\nforeach($content in $fileContent)\n{\n $match = [System.Text.RegularExpressions.Regex]::Match($content, $RegularExpression)\n if($match.Success) {\n $Version = $match.groups[1].value\n }\n}\n\n$Major = $Version.Split('.')[0]\n$Minor = $Version.Split('.')[1]\n\nUpdate-AppveyorBuild -Version \"$Major.$Minor.$env:appveyor_build_number\""
nuget:
account_feed: true
project_feed: true
disable_publish_on_pr: true
before_build:
- ps: nuget restore
build:
project: Chummer
verbosity: normal
after_build:
- ps: 7z a Chummer.Nightly.zip C:\projects\chummer5a\Chummer\bin\debug\* -r
artifacts:
- path: Chummer.Nightly.zip
name: Chummer
deploy:
- provider: GitHub
tag: Nightly-v$(appveyor_build_version)
auth_token:
secure: vwyyrjSs0DpHUhZYOQ9NzqEPwa/a/HcKDgCi9lyzQRxhGcvDXvAhphggxQ/LXZV0
artifact: Chummer
draft: false
prerelease: true