forked from QL-Win/QuickLook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
48 lines (41 loc) · 1.17 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
40
41
42
43
44
45
46
47
48
version: '{build}'
branches:
only:
- master
skip_branch_with_pr: true
image: Visual Studio 2022
configuration: Release
platform: Any CPU
clone_script:
- cmd: >-
git clone -q --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%
cd %APPVEYOR_BUILD_FOLDER%
git checkout -qf %APPVEYOR_REPO_COMMIT%
git submodule update --init --recursive
cache:
- packages -> **\packages.config
- '%USERPROFILE%\.nuget\packages -> **\project.json'
before_build:
- ps: >-
$env:GIT_TAG = git describe --always --tags
nuget restore -verbosity detailed
build:
verbosity: minimal
after_build:
- ps: >-
Get-Content GitVersion.cs
Move-Item Build\QuickLook-$env:GIT_TAG.msi QuickLook-$env:GIT_TAG.msi
Move-Item Build\QuickLook-$env:GIT_TAG.zip QuickLook-$env:GIT_TAG.zip
artifacts:
- path: QuickLook-%GIT_TAG%.zip
name: QuickLook-%GIT_TAG%
- path: QuickLook-%GIT_TAG%.msi
name: QuickLook-%GIT_TAG%
deploy:
- provider: GitHub
auth_token:
secure: 5CSvkfKBq9kUho529L1tkH5ywQQFJY/A8Y6lNoHGJFi7mnSqQAaoiVPbUVU4a/KC
artifact: QuickLook-$(APPVEYOR_REPO_TAG_NAME)
draft: true
on:
APPVEYOR_REPO_TAG: true