Commit 7876e90
Add NuGet packaging and GitHub Packages upload to CI
Add three new steps to the CI workflow:
1. Pack NuGet package:
- Builds Release configuration of Scrutor.csproj
- Outputs to ./artifacts directory
- Creates deterministic .nupkg and .snupkg files
2. Upload NuGet package artifact:
- Makes packages available as GitHub Actions artifacts
- Useful for debugging and manual downloads
- Preserved for workflow retention period
3. Push to GitHub Packages:
- Only runs on push events (not pull requests)
- Only runs on khellang/* repositories
- Uses GITHUB_TOKEN for authentication
- Skips duplicates to avoid errors on re-runs
- Publishes to GitHub's NuGet feed
This enables automatic package distribution on every push while
maintaining deterministic, reproducible builds.1 parent 4954c3b commit 7876e90
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
0 commit comments