Skip to content

# Patch notes for 122.0.214 (#51) #2

# Patch notes for 122.0.214 (#51)

# Patch notes for 122.0.214 (#51) #2

Workflow file for this run

name: NuGet Publish
on:
push:
branches: [main]
pull_request:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Update NuGet package
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET Core @ Latest
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
- name: Build solution and generate NuGet package
run: dotnet build -c Release
- name: Setup Nuget
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
uses: nuget/setup-nuget@v2
with:
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
nuget-version: "5.x"
- name: Run Nuget pack
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: nuget pack ProjectManagerClient.nuspec
- name: Push generated package to GitHub registry
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: nuget push *.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{ secrets.NUGET_API_KEY }}