-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
39 lines (39 loc) · 1.2 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
#---------------------------------#
# environment configuration #
#---------------------------------#
image: Visual Studio 2017
pull_requests:
do_not_increment_build_number: true
nuget:
disable_publish_on_pr: true
test: off
init:
# Good practise, because Windows line endings are different from Unix/Linux ones
- cmd: git config --global core.autocrlf true
install:
before_build:
# Display .NET Core version
- cmd: dotnet --version
# Display minimal restore text
- cmd: dotnet restore ./Hexiron.Azure.ActiveDirectory.sln
build_script:
- ps: .\build.ps1 $env:APPVEYOR_BUILD_VERSION $env:APPVEYOR_REPO_TAG_NAME
after_build:
- cmd: dotnet pack ./src/Hexiron.Azure.ActiveDirectory/Hexiron.Azure.ActiveDirectory.csproj
artifacts:
- path: '**\*.nupkg'
test_script:
# run the unit tests (requires changing into the test directory)
#- cmd: cd tests
#- cmd: dotnet xunit
on_finish :
# any cleanup in here
deploy:
provider: NuGet
api_key:
secure: gSsRi67VKE/odA2UP7XTEjIbuD/Q6rclh6sucrB4DBZnEvkA5BtexBxrYNRju3Rq
skip_symbols: false
artifact: /.*\.nupkg/
on:
branch: master # release from master branch only
appveyor_repo_tag: true # deploy on tag push only