Version 0.24.25-beta #18
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 | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '8.0.100' | |
- name: Download nupkg | |
uses: dawidd6/action-download-artifact@v2 | |
with: | |
github_token: ${{secrets.GITHUB_TOKEN}} | |
workflow: build.yml | |
commit: ${{github.sha}} | |
name: nuget | |
- name: Push to GitHub release | |
uses: svenstaro/[email protected] | |
with: | |
tag: ${{github.ref}} | |
repo_token: ${{secrets.GITHUB_TOKEN}} | |
file_glob: 'true' | |
file: ./*.nupkg | |
- 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 |