add appveyor.yml

This commit is contained in:
Paddy Xu
2017-06-10 13:31:05 +03:00
parent 17f5005b63
commit 86d39e37c5

33
appveyor.yml Normal file
View File

@@ -0,0 +1,33 @@
version: '{build}'
image: Visual Studio 2017
configuration: Release
platform: Any CPU
cache:
- packages -> **\packages.config
- '%USERPROFILE%\.nuget\packages -> **\project.json'
before_build:
- cmd: nuget restore
build:
verbosity: minimal
after_build:
- cmd: >-
type GitVersion.cs
cd Build
move QuickLook.msi ..\QuickLook-%APPVEYOR_REPO_TAG_NAME%.msi
dir ..\QuickLook-%APPVEYOR_REPO_TAG_NAME%.msi
7z a ..\QuickLook-%APPVEYOR_REPO_TAG_NAME%.zip .\Package\* -r
7z l ..\QuickLook-%APPVEYOR_REPO_TAG_NAME%.zip
artifacts:
- path: QuickLook-$(APPVEYOR_REPO_TAG_NAME).zip
name: QuickLook-$(APPVEYOR_REPO_TAG_NAME)
- path: QuickLook-$(APPVEYOR_REPO_TAG_NAME).msi
name: QuickLook-$(APPVEYOR_REPO_TAG_NAME)
deploy:
- provider: GitHub
auth_token:
secure: YwPL9DCYIWsHKBT7WMnx+IHTWph9fEOUBpnfZhZMTgz6VzWem01X+l/vZPlFxCG/
artifact: QuickLook-$(APPVEYOR_REPO_TAG_NAME)
draft: true
on:
branch: master
APPVEYOR_REPO_TAG: true