Skip to content

Commit

Permalink
Add workflow to create a NuGet package.
Browse files Browse the repository at this point in the history
A fully-featured Release workflow would be too much for this repo.
Also enable package validation.
  • Loading branch information
teo-tsirpanis committed Dec 8, 2024
1 parent 71cd9d2 commit 6af8dc3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/pack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Pack

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
pack:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Pack
run: dotnet pack -c Release -o ./artifacts
- name: Upload
uses: actions/upload-artifact@v4
with:
name: artifacts
path: ./artifacts
2 changes: 2 additions & 0 deletions Serilog.Sinks.MSBuild/Serilog.Sinks.MSBuild.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ When using this package, MSBuild's assemblies are not copied, which is not a pro
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<EnablePackageValidation>true</EnablePackageValidation>
<PackageValidationBaselineVersion>1.5.0</PackageValidationBaselineVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 6af8dc3

Please sign in to comment.