Skip to content

Publish to NuGet

Publish to NuGet #4

Workflow file for this run

name: Publish to NuGet
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0'
- name: Restore dependencies
run: dotnet restore
- name: Execute publish script
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: |
chmod +x "$(pwd)/publish.sh"
"$(pwd)/publish.sh"