-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathappveyor.yml
32 lines (27 loc) · 1.03 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
#---------------------------------#
# master branch configuration #
#---------------------------------#
-
branches:
only:
- master
environment:
# Set your Azure DevOps Personal Access Token to facilitate publishing
# Don't store it in the clear, encrypt it: https://ci.appveyor.com/tools/encrypt
VSTS_PAT:
secure: H/UHOP7KVeCcaTkvMe7cp9pn8RlCdvQUOUajO0urYVaL8rr2VbLA+/oJTd+0nRvngg5ZJxwexPLdAKc2oxaxtQ==
install:
# Install the TFX Command Line Interface
npm i -g tfx-cli
before_build:
- ps: .\SyncCommon.ps1
# create or publish VSIX, depending on whether this is a pull request
build_script:
IF "%APPVEYOR_PULL_REQUEST_NUMBER%"=="" (
tfx extension publish --manifest-globs vss-extension.json --auth-type 'pat' --token %VSTS_PAT% --override "{\"version\":\"%APPVEYOR_BUILD_VERSION%\"}"
) ELSE (
tfx extension create --manifest-globs vss-extension.json --override "{\"version\":\"%APPVEYOR_BUILD_VERSION%\"}"
)
artifacts:
- path: ./*.vsix
name: vsts-btdf-tasks