From 80980e9f9e7769d9c47dd77ff71bac8e426a928c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aymeric=20Mouill=C3=A9?= Date: Wed, 6 Nov 2024 16:34:54 +0100 Subject: [PATCH] Update PublishNugetPackage.yml --- .github/workflows/PublishNugetPackage.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/PublishNugetPackage.yml b/.github/workflows/PublishNugetPackage.yml index 36795a0..2469cda 100644 --- a/.github/workflows/PublishNugetPackage.yml +++ b/.github/workflows/PublishNugetPackage.yml @@ -13,10 +13,8 @@ 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 @@ -24,6 +22,7 @@ jobs: $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: