forked from unic/sitecore-module-flex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
75 lines (58 loc) · 2.88 KB
/
appveyor.yml
File metadata and controls
75 lines (58 loc) · 2.88 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
version: '{build}'
image: Visual Studio 2017
environment:
RepoName: sitecore-module-flex
NuGetToken:
secure: jhODVb/iVko3b4Y9p1tOMP9LeDy6OQEYePDIDT6lfAOgNnJixjJpJBAJj/gtkDLc
Artefact_Output_Dir: .\output
GithubEmail: [email protected]
GithubUsername: team-unic
GithubAccessTokenTeamUnic:
secure: BCEthL/NRFeg5eKK9CgmwbySILxWjMUjpvExHC0oGl1jjAT4kMBAohzh9m/xsVDh
install:
- choco install gitversion.portable -y
- ps: gitversion /l console /output buildserver
- ps: Install-Module -Name Sitecore.Courier
# Setup GIT
- git config --global user.email %GithubEmail%
- git config --global user.name %GithubUsername%
- git config --global push.default simple
- git config --global core.autocrlf true
- git config --global core.safecrlf false
- git config --global credential.helper store
configuration: Release
assembly_info:
patch: false
before_build:
- nuget restore
- ps: gitversion /l console /output buildserver /updateAssemblyInfo
build:
verbosity: normal
after_build:
- ps: |
$repositoryRoot = "c:\projects\sitecore-module-flex"
$courierOutputTarget = "$repositoryRoot\Flex.update"
$pathToRainbowFiles = "$repositoryRoot\serialization\modules"
New-CourierPackage -Target $pathToRainbowFiles -Output $courierOutputTarget -SerializationProvider "Rainbow"
- cmd: cp .\README.md .\src\Unic.Flex.Website\readme.txt
- cmd: nuget pack .\src\Unic.Flex.Core\Unic.Flex.Core.csproj -version "%GitVersion_NuGetVersionV2%" -prop "target=%CONFIGURATION%"
- cmd: appveyor PushArtifact "Unic.Flex.Core.%GitVersion_NuGetVersionV2%.nupkg"
- cmd: nuget pack .\src\Unic.Flex.Implementation\Unic.Flex.Implementation.csproj -version "%GitVersion_NuGetVersionV2%" -prop "target=%CONFIGURATION%"
- cmd: appveyor PushArtifact "Unic.Flex.Implementation.%GitVersion_NuGetVersionV2%.nupkg"
- cmd: nuget pack .\src\Unic.Flex.Model\Unic.Flex.Model.csproj -version "%GitVersion_NuGetVersionV2%" -prop "target=%CONFIGURATION%"
- cmd: appveyor PushArtifact "Unic.Flex.Model.%GitVersion_NuGetVersionV2%.nupkg"
- cmd: nuget pack .\src\Unic.Flex.NinjectIoC\Unic.Flex.NinjectIoC.csproj -version "%GitVersion_NuGetVersionV2%" -prop "target=%CONFIGURATION%"
- cmd: appveyor PushArtifact "Unic.Flex.Ninject.%GitVersion_NuGetVersionV2%.nupkg"
- cmd: nuget pack .\src\Unic.Flex.SimpleInjectorIoC\Unic.Flex.SimpleInjectorIoC.csproj -version "%GitVersion_NuGetVersionV2%" -prop "target=%CONFIGURATION%"
- cmd: appveyor PushArtifact "Unic.Flex.SimpleInjector.%GitVersion_NuGetVersionV2%.nupkg"
- cmd: nuget pack .\src\Unic.Flex.Website\Unic.Flex.Website.csproj -version "%GitVersion_NuGetVersionV2%" -prop "target=%CONFIGURATION%"
- cmd: appveyor PushArtifact "Unic.Flex.%GitVersion_NuGetVersionV2%.nupkg"
deploy:
- provider: Environment
name: NuGet.org
on:
branch: main
- provider: Environment
name: NuGet.org
on:
APPVEYOR_REPO_TAG: true