From 3be1029fd382d47d6d74342fd6f92de48c637e7a Mon Sep 17 00:00:00 2001 From: MASES Public Developers Team <94312179+masesdevelopers@users.noreply.github.com> Date: Fri, 17 May 2024 02:02:58 +0200 Subject: [PATCH] Update release.yaml Added Force switch to avoid publishing error since there is an high version available --- .github/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fd54cf8892..91d0cde7b5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -86,7 +86,7 @@ jobs: - name: Publish to PowerShell Gallery run: | $env:DOTNET_CLI_UI_LANGUAGE="en_US" - Publish-Module -Name .\MASES.KNetPS -NuGetApiKey ${{ secrets.MASES_POWERSHELLGALLERY_API_KEY }} + Publish-Module -Name .\MASES.KNetPS -Force -NuGetApiKey ${{ secrets.MASES_POWERSHELLGALLERY_API_KEY }} shell: pwsh - name: Publish to GitHub @@ -98,4 +98,4 @@ jobs: run: | nuget push .\bin\*.nupkg -ApiKey ${{ secrets.MASES_NUGET_API_KEY }} -Source https://api.nuget.org/v3/index.json -SkipDuplicate nuget push .\bin\*.snupkg -ApiKey ${{ secrets.MASES_NUGET_API_KEY }} -Source https://api.nuget.org/v3/index.json -SkipDuplicate - \ No newline at end of file +