Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix version number set in automatic release #34

Merged
merged 13 commits into from
Oct 16, 2020
8 changes: 5 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ stages:
jobs:
- job: PublishJob
displayName: Publish
variables:
SemVer: $[ stageDependencies.BuildAndTest.BuildJob.outputs['OutputSemVerTask.SemVer'] ]
steps:
- checkout: none
- download: current
Expand All @@ -43,9 +45,9 @@ stages:
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'userSpecifiedTag'
tag: 'v$(GitVersion.SemVer)'
tag: 'v$(SemVer)'
releaseNotesSource: 'inline'
assets: '$(Pipeline.Workspace)/Capgemini.PowerApps.SpecFlowBindings/*'
isPreRelease: true
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: commitBased
changeLogCompareToRelease: 'lastNonDraftRelease'
changeLogType: commitBased
4 changes: 3 additions & 1 deletion templates/include-build-and-test-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
useConfigFile: true
configFilePath: '$(Build.SourcesDirectory)\GitVersion.yml'
updateAssemblyInfo: false
- pwsh: Write-Host "##vso[task.setvariable variable=SemVer;isOutput=true]$(GitVersion.SemVer)"
name: OutputSemVerTask
- task: NuGetToolInstaller@1
displayName: Install NuGet
- task: NuGetCommand@2
Expand Down Expand Up @@ -113,4 +115,4 @@ jobs:
failOnStderr: true
- publish: $(Build.ArtifactStagingDirectory)/out
displayName: Publish NuGet artifact
artifact: Capgemini.PowerApps.SpecFlowBindings
artifact: Capgemini.PowerApps.SpecFlowBindings