Skip to content

Commit

Permalink
Update PublishNugetPackage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AymericM78 authored Nov 6, 2024
1 parent bffaabe commit 0608482
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/PublishNugetPackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
shell: pwsh
run: |
$modulePath = "./PowerDataOps.psd1"
$module = Get-Content $modulePath | Out-String | ConvertFrom-StringData
$module.Version = [version]::new($module.Version.Major, $module.Version.Minor, $module.Version.Build + 1)
$module = [PsCustomObject] (Import-PowerShellDataFile ".\PowerDataOps.psd1")
$module.ModuleVersion = [version]::new($module.ModuleVersion.Major, $module.ModuleVersion.Minor, $module.ModuleVersion.Build + 1)
$module | Out-String | Set-Content $modulePath
- name: Publish to PSGallery
Expand Down

0 comments on commit 0608482

Please sign in to comment.