Publishing Packages
This repository now includes two GitHub Actions workflows:
Validate: runs onpushandpull_requestto ensure the solution restores and builds cleanly.Publish Packages: runs when you push a tag that starts withv, for examplev3.0.9, or when you trigger it manually from the Actions page.
Required secrets
Add this repository secret before publishing to NuGet.org:
NUGET_API_KEY: API key from NuGet.org with push permission forXFEExtension.NetCore
No extra secret is required for GitHub Packages. The workflow uses the built-in GITHUB_TOKEN and requests packages: write.
The same built-in GITHUB_TOKEN is also used to create the GitHub Release and upload package assets.
Recommended release flow
- Update the project and verify CI is green.
- Push a version tag such as
v3.0.9. - GitHub Actions will automatically do all of the following:
- build and pack the project
- upload the generated
.nupkgas a workflow artifact - publish the package to NuGet.org
- publish the package to GitHub Packages at
https://nuget.pkg.github.com/XFEstudio/index.json - create a GitHub Release for that tag
- attach the generated
.nupkgfiles to the GitHub Release
Tag-triggered release behavior
When you push a new tag like v3.0.9, that single action is the release trigger for the entire pipeline. You do not need to manually start the workflow afterward.
The release workflow is tied to push.tags: v*, so each new version tag automatically runs the full publishing flow.
Manual publish
If you need to republish packages from the GitHub Actions UI:
- Open
Publish Packages. - Click
Run workflow. - Fill in the
versioninput. - Optionally set
skip_nuget_orgtotruewhen you only want GitHub Packages.
Manual runs publish packages, but GitHub Release creation is only performed for real tag pushes so the release stays aligned with the repository tag history.