-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
63 lines (56 loc) · 3.78 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
61
62
63
version: 1.0.{build}
image: Visual Studio 2022
configuration: Release
environment:
github_token: 'secure: fHV/gr0ZsTCsP6jPh2iNcWWybr2a6cRqdhTS5/hpKqFoWb2ixXAO+Ob9Y78B6kiI'
myget_token: 'secure: 9Z+KYPk2hI7hg9kYLv/N13fvoqcYCP96isNUkRrKu0v87cw85H62oe/DCwpqvBXF'
init:
- set PATH=C:\Program Files\Java\jdk15\bin;%PATH%
- set JAVA_HOME_11_X64=C:\Program Files\Java\jdk15
- set JAVA_HOME=C:\Program Files\Java\jdk15
install:
- ps: dotnet tool install --global GitVersion.Tool --version 5.*
- ps: dotnet tool install --global dotnet-sonarscanner
- cmd: nuget sources add -Name EPiServerFeed -Source https://nuget.episerver.com/feed/packages.svc/
before_build:
- cmd: nuget restore
- ps: dotnet-gitversion /l console /output buildserver
build_script:
- dotnet sonarscanner begin /k:"jstemerdink:EPi.Libraries.Favicons" /n:"EPi.Libraries.Favicons" /d:"sonar.host.url=https://sonarcloud.io" /o:"jstemerdink-github" /d:"sonar.login=0b0eec6902ab7d776899f79bfeff15d313dd6e09"
- dotnet build "EPi.Libraries.Favicons.sln" --no-restore -c Release -p:Version=%GitVersion_MajorMinorPatch% -p:AssemblyVersion=%GitVersion_AssemblySemVer% -p:FileVersion=%GitVersion_AssemblySemFileVer% -p:ProductVersion=%GitVersion_MajorMinorPatch%
- dotnet pack "EPi.Libraries.Favicons.sln" --no-build -c Release -p:PackageVersion=%GitVersion_NuGetVersion%
- dotnet sonarscanner end /d:"sonar.login=0b0eec6902ab7d776899f79bfeff15d313dd6e09"
after_build:
- cmd: appveyor PushArtifact "%APPVEYOR_BUILD_FOLDER%\EPi.Libraries.Favicons\bin\Release\EPi.Libraries.Favicons.%GitVersion_NuGetVersion%.nupkg"
- cmd: appveyor PushArtifact "%APPVEYOR_BUILD_FOLDER%\EPi.Libraries.Favicons.ImageResizer\bin\Release\EPi.Libraries.Favicons.ImageResizer.%GitVersion_NuGetVersion%.nupkg"
- cmd: appveyor PushArtifact "%APPVEYOR_BUILD_FOLDER%\EPi.Libraries.Favicons.ImageProcessor\bin\Release\EPi.Libraries.Favicons.ImageProcessor.%GitVersion_NuGetVersion%.nupkg"
- cmd: appveyor PushArtifact "%APPVEYOR_BUILD_FOLDER%\EPi.Libraries.Favicons.ImageSharp\bin\Release\EPi.Libraries.Favicons.ImageSharp.%GitVersion_NuGetVersion%.nupkg"
- 7z a EPi.Libraries.Favicons.%GitVersion_NuGetVersion%.zip %APPVEYOR_BUILD_FOLDER%\EPi.Libraries.Favicons\bin\Release\*\*.dll
- cmd: appveyor PushArtifact "EPi.Libraries.Favicons.%GitVersion_NuGetVersion%.zip"
- 7z a EPi.Libraries.Favicons.ImageResizer.%GitVersion_NuGetVersion%.zip %APPVEYOR_BUILD_FOLDER%\EPi.Libraries.Favicons.ImageResizer\bin\Release\*\*.dll
- cmd: appveyor PushArtifact "EPi.Libraries.Favicons.ImageResizer.%GitVersion_NuGetVersion%.zip"
- 7z a EPi.Libraries.Favicons.ImageProcessor.%GitVersion_NuGetVersion%.zip %APPVEYOR_BUILD_FOLDER%\EPi.Libraries.Favicons.ImageProcessor\bin\Release\*\*.dll
- cmd: appveyor PushArtifact "EPi.Libraries.Favicons.ImageProcessor.%GitVersion_NuGetVersion%.zip"
- 7z a EPi.Libraries.Favicons.ImageSharp.%GitVersion_NuGetVersion%.zip %APPVEYOR_BUILD_FOLDER%\EPi.Libraries.Favicons.ImageSharp\bin\Release\*\*.dll
- cmd: appveyor PushArtifact "EPi.Libraries.Favicons.ImageSharp.%GitVersion_NuGetVersion%.zip"
before_package:
- ps: >-
Write-Host -NoNewline "Installing NuGet 3.3.0..."
if (Test-Path 'C:\Tools\NuGet3') { $nugetDir = 'C:\Tools\NuGet3' } else { $nugetDir = 'C:\Tools\NuGet' }
deploy:
- provider: NuGet
server: https://www.myget.org/F/epi-libraries/api/v2/package
api_key:
secure: 9Z+KYPk2hI7hg9kYLv/N13fvoqcYCP96isNUkRrKu0v87cw85H62oe/DCwpqvBXF
skip_symbols: true
artifact: /.*\.nupkg/
on:
branch: develop # release from develop branch only
#appveyor_repo_tag: true # deploy on tag push only
- provider: GitHub
auth_token:
secure: fHV/gr0ZsTCsP6jPh2iNcWWybr2a6cRqdhTS5/hpKqFoWb2ixXAO+Ob9Y78B6kiI
artifact: /.*\.zip/
on:
branch: master # release from master branch only
#appveyor_repo_tag: true # deploy on tag push only