Skip to content

Commit 70493bc

Browse files
committed
2 parents 4c83afd + 8d3699b commit 70493bc

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

azure-pipelines.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ variables:
1616
# Build configuration settings
1717
buildConfiguration: 'Release' # 'Release' or 'Debug'
1818
majorVersion: '0'
19-
minorVersion: '1'
19+
minorVersion: '3'
2020
patchVersion: '1'
21+
releaseBuildNumber : $(majorVersion).$(minorVersion).$(patchVersion)
2122

2223
steps:
2324
- task: NuGetToolInstaller@0
@@ -58,13 +59,14 @@ steps:
5859
inputs:
5960
command: 'pack'
6061
searchPatternPack: '**/Tanka.GraphQL.Net.Client.csproj' # Note: Use '!' instead of the '-:' for negations, documentation is wrong
61-
# searchPatternPack: '**/*.csproj;!**/*.Tests.csproj' # Note: Use '!' instead of the '-:' for negations, documentation is wrong
6262
nobuild: true # The projects are already built in the previous step, so skip build here
6363
configurationToPack: '$(buildConfiguration)'
64-
versioningScheme : byPrereleaseNumber
65-
requestedMajorVersion: '$(majorVersion)'
66-
requestedMinorVersion: '$(minorVersion)'
67-
requestedPatchVersion: '$(patchVersion)'
64+
versioningScheme : byEnvVar
65+
versionEnvVar: releaseBuildNumber
66+
# versioningScheme : byPrereleaseNumber
67+
# requestedMajorVersion: '$(majorVersion)'
68+
# requestedMinorVersion: '$(minorVersion)'
69+
# requestedPatchVersion: '$(patchVersion)'
6870
outputDir: '$(Build.ArtifactStagingDirectory)/nuget/' # Add 'nuget' folder to the path to be explicit where the files are, helps push command to find the packages
6971

7072
- task: DotNetCoreCLI@2

0 commit comments

Comments
 (0)