Skip to content

Add automated NuGet publishing workflow#37

Merged
RevenantX merged 1 commit intoRevenantX:masterfrom
roku674:add-nuget-auto-publish
Mar 18, 2026
Merged

Add automated NuGet publishing workflow#37
RevenantX merged 1 commit intoRevenantX:masterfrom
roku674:add-nuget-auto-publish

Conversation

@roku674
Copy link
Contributor

@roku674 roku674 commented Mar 18, 2026

Summary

This PR adds a GitHub Actions workflow that automatically publishes to NuGet.org when the version in the csproj changes.

How it works:

  1. On push to master (or manual trigger), it builds the project
  2. Compares the <Version> in LiteEntitySystem.csproj against the latest version on NuGet.org
  3. If the version is different, it packs and publishes to NuGet

Setup required:

You'll need to add a NUGET_API_KEY secret to your repository settings with your NuGet.org API key.

Why this is useful:

Version 1.2.0 was released on GitHub back in February but NuGet still only has 1.0.1. This workflow ensures NuGet stays in sync with GitHub releases automatically.


Workflow adapted from Anointed Automation's open source C# libraries which use the same pattern successfully.

@roku674
Copy link
Contributor Author

roku674 commented Mar 18, 2026

@RevenantX

@RevenantX RevenantX merged commit 789ad9e into RevenantX:master Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants