/
appveyor.yml
56 lines (46 loc) · 1.57 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
49
50
51
52
53
54
55
56
image: Visual Studio 2017
init:
# Set "build version number" to "short-commit-hash" or when tagged to "tag name" (Travis style)
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_TAG_NAME.TrimStart("v"))"
}
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
install:
- ps: Install-Product node 16.13.0
- npm install --global npm@8.1.0
- set PATH=%APPDATA%\npm;%PATH%
skip_non_tags: true
cache:
- packages
before_build:
- ps: >-
"registry=https://www.myget.org/F/zenprotocol/npm/`r`n//www.myget.org/F/zenprotocol/npm/:_authToken=`$`{MYGET_TOKEN`}" | Out-File (Join-Path $ENV:APPVEYOR_BUILD_FOLDER "package/.npmrc") -Encoding UTF8
build_script:
- paket.cmd restore
- msbuild src/zenprotocol.sln /property:Configuration=Release /t:Node
- cd package
- md Release
- xcopy ..\src\Node\bin\Release Release /E /H
- type nul > Release\.npmignore
- copy ..\src\DataAccess\bin\Release\DataAccess.dll.config Release\DataAccess.dll.config
- npm version %APPVEYOR_BUILD_VERSION%
- bash.exe pack.sh
- npm publish package.tar.gz
- cd ..
- paket.cmd pack --version %APPVEYOR_BUILD_VERSION% .
artifacts:
- path: '*.nupkg'
- path: 'package\package.tar.gz'
deploy:
- provider: NuGet
server: https://www.myget.org/F/zenprotocol/api/v2/package
api_key:
secure: tyLfoWjP8lgJNO8kBD1NQX4twHj/GVSwTUm/GG2yVAM3Ir3F3d7jzFEThgeFE96e
skip_symbols: true