/
appveyor.yml
57 lines (45 loc) · 1.86 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
version: '{build}'
image: Visual Studio 2017
environment:
RepoName: bob-scrambler
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.Bob.Scrambler.Website\Unic.Bob.Scrambler.Website.csproj -version "%GitVersion_NuGetVersionV2%" -prop "target=%CONFIGURATION%"
- cmd: appveyor PushArtifact "Unic.Bob.Scrambler.%GitVersion_NuGetVersionV2%.nupkg"
- cmd: nuget pack .\src\Unic.Bob.Scrambler.Core\Unic.Bob.Scrambler.Core.csproj -version "%GitVersion_NuGetVersionV2%" -prop "target=%CONFIGURATION%"
- cmd: appveyor PushArtifact "Unic.Bob.Scrambler.Core.%GitVersion_NuGetVersionV2%.nupkg"
- cmd: nuget pack .\src\Unic.Bob.Scrambler.ContentSearch\Unic.Bob.Scrambler.ContentSearch.csproj -version "%GitVersion_NuGetVersionV2%" -prop "target=%CONFIGURATION%"
- cmd: appveyor PushArtifact "Unic.Bob.Scrambler.ContentSearch.%GitVersion_NuGetVersionV2%.nupkg"
deploy:
- provider: Environment
name: NuGet.org
on:
branch: main
- provider: Environment
name: NuGet.org
on:
appveyor_repo_tag: true