Skip to content

Added unknown code 4198 for documentation #29

Added unknown code 4198 for documentation

Added unknown code 4198 for documentation #29

Workflow file for this run

name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Pack
run: dotnet pack --configuration Release src/Elmah.Io.HResults/Elmah.Io.HResults.csproj /p:Version=1.0.${{ github.run_number }}
- name: Push
run: dotnet nuget push src/Elmah.Io.HResults/bin/Release/Elmah.Io.HResults.1.0.${{ github.run_number }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
if: ${{ github.event_name == 'push' }}