Skip to content

Commit 503c0b1

Browse files
fix: add --skip-duplicate to CI nuget push and fix MINVERBUILDMETADATA syntax
Co-authored-by: DavidDeSloovere <352626+DavidDeSloovere@users.noreply.github.com>
1 parent dd21ede commit 503c0b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
env:
1616
DOTNET_NOLOGO: true
1717
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
18-
MINVERBUILDMETADATA: build.$GITHUB_RUN_ATTEMPT
18+
MINVERBUILDMETADATA: build.${{ github.run_attempt }}
1919

2020
steps:
2121
- name: ☁ Checkout
@@ -50,5 +50,5 @@ jobs:
5050
"https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
5151
5252
- name: 🚀 Publish to GitHub packages
53-
run: dotnet nuget push "./artifacts/*.nupkg" --source "github" --api-key ${{ secrets.GITHUB_TOKEN }}
53+
run: dotnet nuget push "./artifacts/*.nupkg" --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
5454

0 commit comments

Comments
 (0)