Skip to content

deploy-nuget

deploy-nuget #15

Workflow file for this run

name: deploy-nuget
on:
workflow_dispatch:
jobs:
deploy-nuget:
name: Deploy mudblazor jscompiler nuget to nuget.org
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup dotnet version
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Pack nuget package
run: dotnet pack -c Release --output nupkgs
- name: Publish nuget package
run: dotnet nuget push nupkgs/*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate