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 d04afb6 commit 80980e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/PublishNugetPackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up PowerShell
uses: msftactions/setup-powershell@v1

- name: Update module version
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 | Out-String | Set-Content $modulePath
- name: Publish to PSGallery
shell: pwsh
run: |
Publish-Module -Path "./path/to/your/module" -NuGetApiKey ${{ secrets.PS_GALLERY_KEY }}
env:
Expand Down

0 comments on commit 80980e9

Please sign in to comment.