Publish #27
Workflow file for this run
This file contains hidden or 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 | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download nupkg | |
| uses: dawidd6/action-download-artifact@v6 | |
| with: | |
| github_token: ${{secrets.GITHUB_TOKEN}} | |
| workflow: build.yml | |
| commit: ${{github.sha}} | |
| name: nuget | |
| - name: Push to GitHub release | |
| uses: svenstaro/upload-release-action@2 | |
| with: | |
| tag: ${{github.ref}} | |
| repo_token: ${{secrets.GITHUB_TOKEN}} | |
| file_glob: true | |
| file: ./*.nupkg | |
| overwrite: true | |
| - name: Push to GitHub feed | |
| run: dotnet nuget push *.nupkg | |
| --api-key "${{secrets.GITHUB_TOKEN}}" | |
| --source "https://nuget.pkg.github.com/${{github.repository_owner}}/" | |
| --skip-duplicate | |
| - name: Push to NuGet | |
| run: dotnet nuget push *.nupkg | |
| --api-key ${{secrets.NUGET_API_KEY}} | |
| --source https://api.nuget.org/v3/index.json | |
| --skip-duplicate |