Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
build process is looking for previous version string
  • Loading branch information
AdhocAdam authored Dec 11, 2023
1 parent bc230a2 commit 046f905
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ jobs:
{
#regular, change the version and remove the pre-release block from the manifest
Write-Output "Performing regular build..."
(Get-Content -Path '.\CareLink.psd1') -replace '1.0', $newVersionString | Set-Content -Path '.\CareLink.psd1'
(Get-Content -Path '.\CareLink.psd1') -replace '2.0', $newVersionString | Set-Content -Path '.\CareLink.psd1'
}
else
{
#alpha, change the version and update the pre-release block from the manifest
Write-Output "Performing pre-release build..."
$alphaVersion = "-" + "alpha" + $newVersion.Revision.ToString()
$newVersionString = $newVersion.Major.ToString() + "." + $newVersion.Minor.ToString() + "." + $newVersion.Build.ToString()
(Get-Content -Path '.\CareLink.psd1') -replace '1.0', $newVersionString | Set-Content -Path '.\CareLink.psd1'
(Get-Content -Path '.\CareLink.psd1') -replace '2.0', $newVersionString | Set-Content -Path '.\CareLink.psd1'
#prep the PrivateData section, then set the pre-release version
Update-ModuleManifest -Path ".\CareLink.psd1"
Expand Down

0 comments on commit 046f905

Please sign in to comment.