From 4f92f545dfb802f0a5d21ca32cd01c125c27df04 Mon Sep 17 00:00:00 2001 From: Vitali Bibikov Date: Wed, 1 May 2024 13:44:27 +0200 Subject: [PATCH] Updated --- .github/workflows/dotnet.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 17a0753..5c686a7 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -182,3 +182,14 @@ jobs: do dotnet nuget push "$file" --api-key "${{secrets.NUGET_PUSH_KEY}}" --source https://api.nuget.org/v3/index.json --skip-duplicate done + - name: Publish to GitHub Packages + run: | + echo "github.com: ${{ secrets.GITHUB_TOKEN }}" > $HOME/.nuget/NuGet/NuGet.Config + for file in $(find ${{ env.NuGetDirectory }} -name "*.nupkg" -or -name "*.snupkg") + do + dotnet nuget push "$file" --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/" --skip-duplicate + done + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + \ No newline at end of file