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'
5073 zipAfterPublish : false
5174 modifyOutputPath : false
5275 projects : ' src/ACUConsole/ACUConsole.csproj'
76+
5377 arguments : ' -r linux-arm64 --configuration $(BuildConfiguration) --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeAllContentForSelfExtract=true --output $(Build.ArtifactStagingDirectory)/TestConsole/linux-arm64'
5478
5579 - task : ArchiveFiles@2
@@ -64,29 +88,6 @@ steps:
6488 inputs :
6589 targetPath : ' $(Build.ArtifactStagingDirectory)'
6690
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" -Format Simple
78- Write-Host "Packaging completed successfully. Current version: $currentVersion"
79-
80- # Increment patch version
81- & "$(Build.SourcesDirectory)/scripts/Increment-Version.ps1" -IncrementType Patch
82-
83- # Get new version
84- $newVersion = & "$(Build.SourcesDirectory)/scripts/Get-Version.ps1" -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-
9091 - task : PowerShell@2
9192 displayName : ' Commit version update and create tag'
9293 inputs :
0 commit comments