Skip to content

NuGet Deployment

NuGet Deployment #11

Workflow file for this run

name: NuGet Deployment
on:
workflow_dispatch:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: CsvPortable
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
- name: Restore dependencies
run: dotnet restore
- name: Build project
run: dotnet build --configuration Release
- name: Pack NuGet package
run: dotnet pack -c Release
- name: Publish NuGet package
run: dotnet nuget push CsvPortable/bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate