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 1b7eef1 commit 5fe327d
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 @@ -19,14 +19,14 @@ jobs:
$modulePath = "./PowerDataOps.psd1";
$module = [PsCustomObject] (Import-PowerShellDataFile ".\PowerDataOps.psd1");
$currentVersion = [version] $module.ModuleVersion;
$newVersion = [version]::new($currentVersion.Major, $currentVersion.Minor, $currentVersion.Build + 1);
$newVersion = [version]::new($currentVersion.Major, $currentVersion.Minor, $currentVersion.Build, $currentVersion.Revision + 1);
Write-Host "New Module Version = $($newVersion.ToString())";
$module.ModuleVersion = $newVersion.ToString();
$module | Out-String | Set-Content $modulePath
- name: Publish to PSGallery
shell: pwsh
run: |
Publish-Module -Path "./" -NuGetApiKey ${{ secrets.PS_GALLERY_KEY }}
Publish-Module -Path "./" -NuGetApiKey "${{ secrets.PS_GALLERY_KEY }}" -SkipAutomaticTags -Verbose
env:
PS_GALLERY_KEY: ${{ secrets.PS_GALLERY_KEY }}

0 comments on commit 5fe327d

Please sign in to comment.