Skip to content

Add retry functionality (v1.2.0) #4

Add retry functionality (v1.2.0)

Add retry functionality (v1.2.0) #4

Workflow file for this run

name: Publish NuGet Package
on:
push:
tags:
- 'v*'
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Pack NuGet package
run: dotnet pack --configuration Release --no-build --output ./nupkg
- name: Push to NuGet
run: dotnet nuget push ./nupkg/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}