Skip to content

Provide PAT to work around actions limitation #1

Provide PAT to work around actions limitation

Provide PAT to work around actions limitation #1

Workflow file for this run

name: Publish NuGet Package
on:
push:
tags:
- '*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Pack
run: dotnet pack --no-build --configuration Release --output ./Release
- name: Publish to NuGet
run: dotnet nuget push ./Release/*.nupkg -s nuget.org -k ${NUGET_API_KEY}
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}