Skip to content

Docs build.

Docs build. #10

Workflow file for this run

name: Publish NuGet Package
on:
push:
tags: ["*"]
workflow_dispatch:
jobs:
publish:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Git Semantic Version
id: gitversion
uses: PaulHatch/[email protected]
with:
tag_prefix: ""
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
- name: Display .NET Version
run: dotnet --version
- name: Build
run: dotnet build src/CsvHelper --configuration Release -p:AssemblyVersion=${{ steps.gitversion.outputs.major }}.0.0.0 -p:FileVersion=${{ steps.gitversion.outputs.version }}.${{ github.run_number }}
- name: Create NuGet Package
run: dotnet pack src/CsvHelper --no-build --configuration Release -o output -p:PackageVersion=${{ steps.gitversion.outputs.version }}
- name: Display Output
run: dir output
- name: Publish NuGet Package
run: dotnet nuget push output/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}