Skip to content

Commit

Permalink
GitHub Nuget feed add --skip-duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
thohng committed Jan 1, 2023
1 parent 26388ad commit 2f30137
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: .NET Core

on:
push:
branches: [main, "dev*"]
branches: [main]
tags: ["*.*.*"]
pull_request:
branches: [main]
Expand Down Expand Up @@ -41,4 +41,4 @@ jobs:
run: dotnet nuget push .\artifacts\packages\*.nupkg -s https://www.myget.org/F/netlah/api/v2/package -k ${{ secrets.MYGET }}
- if: ${{ success() && runner.os == 'Windows' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) }}
name: Publish Nuget to GitHub registry
run: dotnet nuget push .\artifacts\packages\*.nupkg -s https://nuget.pkg.github.com/NetLah/index.json -k ${{ secrets.PUSH_GITHUB_REGISTRY_TOKEN }}
run: dotnet nuget push .\artifacts\packages\*.nupkg -s https://nuget.pkg.github.com/NetLah/index.json --skip-duplicate -k ${{ secrets.PUSH_GITHUB_REGISTRY_TOKEN }}

0 comments on commit 2f30137

Please sign in to comment.