Skip to content

Clean up .gitignore: remove LogicMonitor references, ignore nupkgs/ a… #1

Clean up .gitignore: remove LogicMonitor references, ignore nupkgs/ a…

Clean up .gitignore: remove LogicMonitor references, ignore nupkgs/ a… #1

Workflow file for this run

name: Publish
on:
push:
tags:
- '[0-9]*.[0-9]*.[0-9]*'
permissions:
id-token: write
contents: read
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:
dotnet-version: '9.0.x'
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-build --verbosity normal
- name: Pack
run: dotnet pack --configuration Release --no-build --output nupkgs
- name: NuGet Login (Trusted Publishing)
uses: NuGet/login@v1
- name: Push to NuGet
run: dotnet nuget push "nupkgs/*.nupkg" --source https://api.nuget.org/v3/index.json
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: nupkgs
path: |
nupkgs/*.nupkg
nupkgs/*.snupkg