Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Version Bump

Version Bump #5

name: nuget-cliargsparser.yml
on:
push:
tags:
- '\d+.\d+.\d+'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Build
run: dotnet build src/CliArgsParser --configuration Release
- name: Create NuGet package
run: nuget pack src/CliArgsParser/CliArgsParser.nuspec -OutputDirectory ./nupkgs
- name: Publish to NuGet
run: dotnet nuget push ./nupkgs/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json