deploy-nuget #3
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: deploy-nuget | |
on: | |
workflow_dispatch: | |
jobs: | |
deploy-nuget: | |
name: Deploy mudblazor sasscompiler 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 | |
working-directory: ./AspNetCore.SassCompiler | |
- name: Publish nuget package | |
run: dotnet nuget push nupkgs/*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate | |
working-directory: ./AspNetCore.SassCompiler | |
- name: Push nuget generated package symbols | |
run: dotnet nuget push nupkgs/*.snupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate | |
working-directory: ./AspNetCore.SassCompiler |