Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
galvesribeiro committed Jun 23, 2018
1 parent 66ca0aa commit 12c5be1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
11 changes: 9 additions & 2 deletions .vsts-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
queue: 'Hosted Linux Preview'

variables:
- Major: '1'
- Minor: '0'
- Patch: '0'

steps:

- task: DotNetCoreCLI@2
Expand All @@ -24,7 +29,9 @@ steps:
command: pack
packagesToPack: '**/*.csproj'
configuration: '$(BuildConfiguration)'
versioningScheme: byEnvVar
versionEnvVar: Version
versioningScheme: byPrereleaseNumber
majorVersion: '$(Major)'
minorVersion: '$(Minor)'
patchVersion: '$(Patch)-preview-$(rev:.r)'

- task: PublishBuildArtifacts@1
17 changes: 13 additions & 4 deletions .vsts-release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
queue: 'Hosted Linux Preview'

variables:
- Major: '1'
- Minor: '0'
- Patch: '0'

steps:

- task: DotNetCoreCLI@2
Expand All @@ -24,15 +29,19 @@ steps:
command: pack
packagesToPack: '**/*.csproj'
configuration: '$(BuildConfiguration)'
versioningScheme: byEnvVar
versionEnvVar: Version
versioningScheme: byPrereleaseNumber
majorVersion: '$(Major)'
minorVersion: '$(Minor)'
patchVersion: '$(Patch)'

- task: NuGetCommand@2
inputs:
command: push
publishFeedCredentials: 'OSS'
nuGetFeedType: external
versioningScheme: byEnvVar
versionEnvVar: Version'
versioningScheme: byPrereleaseNumber
majorVersion: '$(Major)'
minorVersion: '$(Minor)'
patchVersion: '$(Patch)'

- task: PublishBuildArtifacts@1

0 comments on commit 12c5be1

Please sign in to comment.