Skip to content

Workflow file for this run

name: Publish nuget package
on:
release:
types: [ published ]
jobs:
build-and-test:
name: build-and-test
uses: ./.github/workflows/build-test-publish.yml
permissions:
contents: write
with:
should-package: true
should-publish-gh-page: true
gh-page-destination-directory: ${{ github.event.release.tag_name }}
publish:
name: publish
needs: [ build-and-test ]
runs-on: ubuntu-latest
steps:
- name: 🔃 download artifacts
uses: actions/download-artifact@v3
with:
name: artifacts
path: .
- name: 📦 setup .NET
uses: actions/setup-dotnet@v3
- name: 🚀 publish nuget packages
run: dotnet nuget push "*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json