From 82ea97e10b75a5e67a16826e297f8b352bc25483 Mon Sep 17 00:00:00 2001 From: Ahmad Moussawi Date: Sat, 1 Feb 2025 10:13:28 +0200 Subject: [PATCH] chore: update release ci to add nuget source --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 16b5855b..ad7b033d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,7 +46,11 @@ jobs: SQLKATA_MYSQL_DB: ${{ env.DB_MYSQL_DATABASE }} - name: Pack run: dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output . - - name: Push - run: dotnet nuget push *.${VERSION}.nupkg --source https://nuget.pkg.github.com/sqlkata/index.json --api-key ${GITHUB_TOKEN} + - name: Push to Github Packages + run: dotnet nuget push *.${VERSION}.nupkg --skip-duplicate --source https://nuget.pkg.github.com/sqlkata/index.json --api-key ${GITHUB_TOKEN} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Push to Nuget + run: dotnet nuget push *.${VERSION}.nupkg --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${NUGET_KEY} + env: + NUGET_KEY: ${{ secrets.NUGET_KEY }}