Skip to content

Commit

Permalink
Update release.yaml
Browse files Browse the repository at this point in the history
Added Force switch to avoid publishing error since there is an high version available
  • Loading branch information
masesdevelopers authored May 17, 2024
1 parent 725e411 commit 3be1029
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 3be1029

Please sign in to comment.