Skip to content

Commit

Permalink
Add package deployment job.
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtech committed Aug 16, 2023
1 parent 64bbcd1 commit e9e8be0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e9e8be0

Please sign in to comment.