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

[3.x] Fix version suffix in build.yaml #8115

Merged
merged 1 commit into from
Nov 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 9 additions & 3 deletions .azure/pipelines/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ parameters:
- name: version_prefix
displayName: Version prefix
type: string
default: 7.0
default: 3.0.0
- name: include_suffix
displayName: Append version suffix
type: boolean
default: true
- name: version_suffix
displayName: Version suffix
type: string
Expand Down Expand Up @@ -81,7 +85,8 @@ jobs:
arguments: '$(build_flags) /bl:${{parameters.build_configuration}}-Build.binlog /p:Configuration=${{parameters.build_configuration}} $(solution)'
env:
VersionPrefix: ${{parameters.version_prefix}}
VersionSuffix: ${{parameters.version_suffix}}
${{ if eq(parameters.include_suffix, true) }}:
VersionSuffix: ${{parameters.version_suffix}}
OfficialBuild: $(official_build)
# DLL code signing
- ${{ if eq(parameters.codesign, true) }}:
Expand Down Expand Up @@ -160,7 +165,8 @@ jobs:
inputs:
script: 'dotnet pack --no-build --no-restore $(build_flags) /bl:${{parameters.build_configuration}}-Pack.binlog /p:Configuration=${{parameters.build_configuration}} $(solution)'
env:
VersionSuffix: ${{parameters.version_suffix}}
${{ if eq(parameters.include_suffix, true) }}:
VersionSuffix: ${{parameters.version_suffix}}
OfficialBuild: $(official_build)
# NuGet code signing
- ${{ if eq(parameters.codesign, true) }}:
Expand Down