Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |