forked from TEdit/Terraria-Map-Editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
21 lines (20 loc) · 1.29 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
version: 3.10.0.{build}
branches:
only:
- master
skip_tags: true
image: Visual Studio 2017
clone_depth: 1
init:
- ps: Update-AppveyorBuild -Version "3.10.$(Get-Date -uformat %y%j).$env:appveyor_build_number"
environment:
github_release_title: TEdit 3.10 for Terraria 1.3.5
build_script:
- ps: "Write-Host \"Building Solution...\"\n$msbuild=Resolve-Path \"${env:ProgramFiles(x86)}\\Microsoft Visual Studio\\*\\*\\MSBuild\\*\\bin\\msbuild.exe\"\n$nuget=\".\\.nuget\\nuget.exe\"\n\n& $nuget ('restore', '.\\TEditNoInstaller.sln')\n& $msbuild ('.\\TEditNoInstaller.sln', '/p:Configuration=Release;Platform=\"Any CPU\"', '/verbosity:m')\n\n$version = \"v$env:APPVEYOR_BUILD_VERSION\"\n$version | Out-File teditversion.txt\n\n$source = \"$env:APPVEYOR_BUILD_FOLDER\\TEditXna\\bin\\Release\"\n$destination = \"$env:APPVEYOR_BUILD_FOLDER\\TEdit3_$version.zip\"\n\nWrite-Host \"Zipping $source ...\" -ForegroundColor Yellow\nIf(Test-path $destination) {\n Remove-item $destination\n}\n\nAdd-Type -assembly \"system.io.compression.filesystem\"\n[io.compression.zipfile]::CreateFromDirectory($Source, $destination) \n\nWrite-Host \"Created $destination.\" -ForegroundColor Green"
artifacts:
- path: TEdit*.zip
- path: teditversion.txt
name: BinaryConstruct FTP
deploy:
- provider: Environment
name: Github TEdit Releases