Skip to content

Commit

Permalink
Fix appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
Traderain committed Jun 26, 2019
1 parent 83dfd5c commit 5e4181a
Showing 1 changed file with 44 additions and 4 deletions.
48 changes: 44 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,47 @@
# Skip commits on updating git specific stuff. No actual project changes in this case so pointless to build.
skip_commits:
files:
- .gitignore
- README.md

init:
- ps: '$env:WK_BUILD_TIME = "[UTC+2]: " + $(Get-Date).ToLongDateString() + " " + $((Get-Date).ToUniversalTime().AddHours(+2).ToLongTimeString())'
- ps: $env:WK_VERSION = "$(Get-Date -format yyyy.MM.dd)-$env:APPVEYOR_REPO_COMMIT"
- ps: Update-AppveyorBuild -Version $env:VW_VERSION

clone_script:
- cmd: git clone -q --recursive --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%
- cmd: git checkout -qf %APPVEYOR_REPO_COMMIT%

# Update to the most recent VS.
image: Visual Studio 2017

build:
parallel: true
project: WolvenKit.sln
verbosity: minimal

platform: Any CPU
configuration: Release

before_build:
- nuget restore
after_build:
7z a Portable.zip VolvoWrench\bin\Release\*.*
artifacts:
- path: Portable.zip
name: Portable
- cd %APPVEYOR_BUILD_FOLDER%\VolvoWrench\bin\Release\
- rm *.xml
- rm *.config
- rm *.pdb
- cd /
- 7z a Portable.zip %APPVEYOR_BUILD_FOLDER%\VolvoWrench\bin\Release\*
- appveyor PushArtifact Portable.zip

deploy:
release: VolvoWrench-v$(appveyor_build_version)
tag: Latest
description: This is a beta release so you may encounter bugs. Please report them. This build was generated on $(WK_BUILD_TIME)
provider: GitHub
auth_token:
secure: PVcjhc6iNEsA28A1clj8BTACho8kddrMQXuFtLoTnJo9wgaQ8erwBvwGd+tMFQT6
artifact: VolvoWrench.zip
prerelease: true
force_update: true

0 comments on commit 5e4181a

Please sign in to comment.