-
Notifications
You must be signed in to change notification settings - Fork 14
/
appveyor.yml
49 lines (39 loc) · 1.51 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
version: '{build}'
image: Visual Studio 2015
environment:
RepoName: SitecoreErrorManager
NuGetToken:
secure: jhODVb/iVko3b4Y9p1tOMP9LeDy6OQEYePDIDT6lfAOgNnJixjJpJBAJj/gtkDLc
Artefact_Output_Dir: .\output
GithubEmail: team-unic@unic.com
GithubUsername: team-unic
GithubAccessTokenTeamUnic:
secure: BCEthL/NRFeg5eKK9CgmwbySILxWjMUjpvExHC0oGl1jjAT4kMBAohzh9m/xsVDh
install:
- choco install gitversion.portable -y
- ps: gitversion /l console /output buildserver
# 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:
- cmd: nuget pack .\src\Unic.ErrorManager.Core\Unic.ErrorManager.Core.csproj -version "%GitVersion_NuGetVersionV2%" -prop "target=%CONFIGURATION%"
- cmd: appveyor PushArtifact "Unic.ErrorManager.Core.%GitVersion_NuGetVersionV2%.nupkg"
- cmd: nuget pack .\src\Unic.ErrorManager.Website\Unic.ErrorManager.Website.csproj -version "%GitVersion_NuGetVersionV2%" -prop "target=%CONFIGURATION%"
- cmd: appveyor PushArtifact "Unic.ErrorManager.%GitVersion_NuGetVersionV2%.nupkg"
deploy:
- provider: Environment
name: NuGet.org
on:
APPVEYOR_REPO_TAG: true