Skip to content

Commit 5b03eef

Browse files
authored
Merge pull request #84 from IsaMorphic/feature/fix-ci-publish
CI: allow duplicate packages on NuGet publish
2 parents 911727c + 06ddb4b commit 5b03eef

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/nuget.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ jobs:
2727
run: dotnet build QuadrupleLib --no-restore --configuration Release
2828
- name: Create NuGet packages
2929
run: dotnet pack --no-build --output build/
30-
- name: Publish to NuGet
31-
run: dotnet nuget push --api-key ${{ secrets.API_KEY }} --source nuget.org build/**/*.nupkg
3230
- name: Create new release
3331
uses: ncipollo/release-action@v1
3432
with:
33+
artifacts: build/**/*.nupkg
3534
generateReleaseNotes: true
35+
- name: Publish to NuGet
36+
run: dotnet nuget push --api-key ${{ secrets.API_KEY }} --source nuget.org build/**/*.nupkg --skip-duplicate

0 commit comments

Comments
 (0)