diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index a7e7b7aa..0ab41f7b 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -34,12 +34,8 @@ jobs: git add PwshSpectreConsole/PwshSpectreConsole.psd1 git commit -m "[skip ci] Bump version to $newVersion" git push - - name: Deploy Package - shell: pwsh - run: | - $ErrorActionPreference = "Stop" Import-Module .\PwshSpectreConsole\PwshSpectreConsole.psd1 -Force - Publish-Module -Name "PwshSpectreConsole" -Exclude "Build.ps1" -NugetApiKey $env:PSGALLERY_API_KEY + Publish-Module -Name PwshSpectreConsole -Exclude "Build.ps1" -NugetApiKey $env:PSGALLERY_API_KEY publish-prerelease-to-psgallery: name: Publish Prerelease