forked from cinderblocks/radegast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.appveyor.yml
More file actions
61 lines (50 loc) · 1.99 KB
/
Copy path.appveyor.yml
File metadata and controls
61 lines (50 loc) · 1.99 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
init:
- ps: if ($env:APPVEYOR_REPO_TAG -eq "true") { $env:TAG_VERSION = "$env:APPVEYOR_REPO_TAG_NAME.$env:APPVEYOR_BUILD_NUMBER" } else { $env:TAG_VERSION = "v3.0.$env:APPVEYOR_BUILD_NUMBER" }
- ps: $env:TAG_VERSION = $env:TAG_VERSION -replace 'v',''
- ps: Write-Host "Setting version to '$env:TAG_VERSION'"
- ps: Update-AppveyorBuild -Version "$env:TAG_VERSION"
image: Visual Studio 2019
branches:
except:
- localbuilding
configuration: ReleaseWindows
environment:
PfxDownloadUrl:
secure: 6zETilPjqhwgznp0rOyu2lloNy/uIU0coJBWCW+ADBiofQTU8ZuU3BCIEifEPI1R
PfxDownloadPasswd:
secure: qzHJldnavMFT8+Cm2eXndg==
PfxPassword:
secure: +vWSGzLkiBGVIxfPb+iRtD+/maQjI2d92hN4PoNAxMc=
pull_requests:
do_not_increment_build_number: true
build:
project: radegast.sln
parallel: true
verbosity: minimal
cache:
- packages -> **\packages.config
- '%LocalAppData%\NuGet\Cache'
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
before_build:
- ps: util/InstallRemotePfx.ps1 -PfxDownloadUrl $env:PfxDownloadUrl -PfxDownloadUser AppVeyor -PfxDownloadPasswd $env:PfxDownloadPasswd -PfxPasswd $env:PfxPassword
- nuget restore radegast.sln
after_build:
- cmd: '7z a -ttar -so Radegast-%TAG_VERSION%.tar %APPVEYOR_BUILD_FOLDER%\bin\Release\net471\ | 7z a -si Radegast-%TAG_VERSION%.tbz'
- cmd: 'msbuild "%APPVEYOR_BUILD_FOLDER%\radegast.sln" /t:RadegastBundle /p:Platform="x86" /p:BuildProjectReferences=false /m /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"'
- ps: Copy-Item bin\Release\RadegastSetup.msi RadegastSetup-$env:TAG_VERSION.msi
- ps: Copy-Item bin\Release\RadegastBundle.exe RadegastSetup-$env:TAG_VERSION.exe
artifacts:
- path: 'RadegastSetup-*.exe'
name: 'Radegast Windows Bundle'
type: Auto
- path: 'RadegastSetup-*.msi'
name: 'Radegast Windows MSI'
type: Auto
- path: 'Radegast-*.tbz'
name: 'Radegast Linux'
type: Auto