Skip to content

Commit 5d858ec

Browse files
authored
Merge branch 'master' into develop
2 parents 2694c04 + bea31b0 commit 5d858ec

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

ci/package.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,29 @@ steps:
44
inputs:
55
packageType: 'sdk'
66
version: '8.x'
7+
8+
- task: PowerShell@2
9+
displayName: 'Increment patch version'
10+
inputs:
11+
targetType: 'inline'
12+
script: |
13+
# Configure git for the build agent
14+
git config --global user.email "[email protected]"
15+
git config --global user.name "Azure DevOps Build Agent"
16+
17+
# Get current version for display
18+
$currentVersion = & "$(Build.SourcesDirectory)/scripts/Get-Version.ps1" -Format Simple
19+
Write-Host "Packaging completed successfully. Current version: $currentVersion"
20+
21+
# Increment patch version
22+
& "$(Build.SourcesDirectory)/scripts/Increment-Version.ps1" -IncrementType Patch
23+
24+
# Get new version
25+
$newVersion = & "$(Build.SourcesDirectory)/scripts/Get-Version.ps1" -Format Simple
26+
Write-Host "New version: $newVersion"
27+
28+
# Set pipeline variable for later use
29+
Write-Host "##vso[task.setvariable variable=NewVersion]$newVersion"
730
831
- task: DotNetCoreCLI@2
932
displayName: 'dotnet pack'
@@ -49,7 +72,7 @@ steps:
4972
publishWebProjects: false
5073
zipAfterPublish: false
5174
modifyOutputPath: false
52-
projects: 'src/ACUConsole/ACUConsole.csproj'
75+
projects: 'src/ACUConsole/ACUConsole.csproj'
5376
arguments: '-r linux-arm64 --configuration $(BuildConfiguration) --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeAllContentForSelfExtract=true --output $(Build.ArtifactStagingDirectory)/TestConsole/linux-arm64'
5477

5578
- task: ArchiveFiles@2
@@ -64,29 +87,6 @@ steps:
6487
inputs:
6588
targetPath: '$(Build.ArtifactStagingDirectory)'
6689

67-
- task: PowerShell@2
68-
displayName: 'Increment patch version after successful packaging'
69-
inputs:
70-
targetType: 'inline'
71-
script: |
72-
# Configure git for the build agent
73-
git config --global user.email "[email protected]"
74-
git config --global user.name "Azure DevOps Build Agent"
75-
76-
# Get current version for display
77-
$currentVersion = & "$(Build.SourcesDirectory)/scripts/Get-Version.ps1" -BuildPropsPath "$(Build.SourcesDirectory)/Directory.Build.props" -Format Simple
78-
Write-Host "Packaging completed successfully. Current version: $currentVersion"
79-
80-
# Increment patch version
81-
& "$(Build.SourcesDirectory)/scripts/Increment-Version.ps1" -BuildPropsPath "$(Build.SourcesDirectory)/Directory.Build.props" -IncrementType Patch
82-
83-
# Get new version
84-
$newVersion = & "$(Build.SourcesDirectory)/scripts/Get-Version.ps1" -BuildPropsPath "$(Build.SourcesDirectory)/Directory.Build.props" -Format Simple
85-
Write-Host "New version: $newVersion"
86-
87-
# Set pipeline variable for later use
88-
Write-Host "##vso[task.setvariable variable=NewVersion]$newVersion"
89-
9090
- task: PowerShell@2
9191
displayName: 'Commit version update and create tag'
9292
inputs:

0 commit comments

Comments
 (0)