From e9e8be03e098a82a005806b6cfabd8d7f272e274 Mon Sep 17 00:00:00 2001 From: vojtech Date: Wed, 16 Aug 2023 11:55:28 +0200 Subject: [PATCH] Add package deployment job. --- .github/workflows/release.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 30694c5..d9d34ab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,3 +75,16 @@ jobs: run: dotnet tool update Meziantou.Framework.NuGetPackageValidation.Tool --global - name: Validate package run: meziantou.validate-nuget-package ${{ env.NuGetDirectory }}/*.nupkg + + # Deploys generated package to the Nuget server. + deploy: + name: Deploy Package + runs-on: ubuntu-latest + needs: [ build, validate ] + steps: + - uses: actions/download-artifact@v3 + with: + name: nuget + path: ${{ env.NuGetDirectory }} + - name: Publish NuGet package + run: dotnet nuget push ${{ env.NuGetDirectory }}/*.nupkg --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json