Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

nuget-ext_serilog.yml #6

nuget-ext_serilog.yml

nuget-ext_serilog.yml #6

name: nuget-ext_serilog.yml
on:
push:
tags:
- 'ext_serilog-\d+.\d+.\d+'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Build
run: dotnet build src/CodeOfChaos.Extensions.Serilog --configuration Release
- name: Create NuGet package
run: nuget pack src/CodeOfChaos.Extensions.Serilog/CodeOfChaos.Extensions.Serilog.nuspec -OutputDirectory ./nupkgs
- name: Publish to NuGet
run: dotnet nuget push ./nupkgs/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json