Skip to content

Commit 4228ffd

Browse files
committed
Added VSTS build files
1 parent 6bbdbfc commit 4228ffd

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

.vsts-ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
queue: 'Hosted VS2017'
2+
3+
variables:
4+
buildConfiguration: 'Release'
5+
6+
steps:
7+
8+
- task: DotNetCoreCLI@2
9+
inputs:
10+
command: 'restore'
11+
projects: '**/*.csproj'
12+
13+
- task: DotNetCoreCLI@2
14+
inputs:
15+
command: 'build'
16+
projects: '**/*.csproj'
17+
arguments: '--configuration $(buildConfiguration)'
18+
19+
- task: DotNetCoreCLI@2
20+
inputs:
21+
command: pack
22+
packagesToPack: 'src/Blazor.Extensions.Logging/*.csproj'
23+
configuration: '$(buildConfiguration)'
24+
versioningScheme: byPrereleaseNumber
25+
majorVersion: '0'
26+
minorVersion: '1'
27+
patchVersion: '0'

.vsts-release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
queue: 'Hosted VS2017'
2+
3+
variables:
4+
buildConfiguration: 'Release'
5+
6+
steps:
7+
8+
- task: DotNetCoreCLI@2
9+
inputs:
10+
command: 'restore'
11+
projects: '**/*.csproj'
12+
13+
- task: DotNetCoreCLI@2
14+
inputs:
15+
command: 'build'
16+
projects: '**/*.csproj'
17+
arguments: '--configuration $(buildConfiguration)'
18+
19+
- task: DotNetCoreCLI@2
20+
inputs:
21+
command: pack
22+
packagesToPack: 'src/Blazor.Extensions.Logging/*.csproj'
23+
packDirectory: '$(build.artifactStagingDirectory)'
24+
configuration: '$(buildConfiguration)'
25+
versioningScheme: byEnvVar
26+
versionEnvVar: Version
27+
28+
- task: NuGetCommand@2
29+
inputs:
30+
command: push
31+
packagesToPush: '$(build.artifactStagingDirectory)/*.nupkg'
32+
publishFeedCredentials: 'BlazorExtensions'
33+
nuGetFeedType: external
34+
versioningScheme: byEnvVar
35+
versionEnvVar: Version

0 commit comments

Comments
 (0)