-
Notifications
You must be signed in to change notification settings - Fork 7
/
appveyor.yml
60 lines (52 loc) · 1.47 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
57
58
59
60
version: "1.0.{build}"
image: Visual Studio 2022
# Test against the latest version of this Node.js version
environment:
nodejs_version: "16.14.2"
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: "{version}"
package_version: "{version}"
assembly_version: "{version}"
file_version: "{version}"
informational_version: "{version}"
pull_requests:
do_not_increment_build_number: true
branches:
only:
- main
init:
# Good practise, because Windows line endings are different from Unix/Linux ones
- cmd: git config --global core.autocrlf true
install:
# Install repo specific stuff here
- ps: Install-Product node $env:nodejs_version
- cmd: cd ./src/SandDance.InteractiveExtension.js/
- npm ci
- cmd: cd ../..
before_build:
- cmd: dotnet --version
- cmd: dotnet restore dotnetInteractiveExtensions.sln --verbosity q
build_script:
- cmd: cd ./src/SandDance.InteractiveExtension.js/
- npm run compile
- cmd: cd ../..
- cmd: dotnet build dotnetInteractiveExtensions.sln -c Release
after_build:
# For once the build has completed
- cmd: dotnet pack dotnetInteractiveExtensions.sln -c Release
artifacts:
- path: "src/**/*.nupkg"
name: NugetPacakges
clone_depth: 1
test_script:
- cmd: dotnet test dotnetInteractiveExtensions.sln
deploy:
- provider: NuGet
api_key:
secure: jMvQ21Q/27U3VTx7Lr9VG+t0IGhvcidCNaV08D8OCtHwR+F0ftwuR818AFgtoExS
skip_symbols: false
artifact: /.*(\.|\.s)nupkg/
on:
branch: main