Skip to content

feat: Add GitHub Packages publishing alongside NuGet.org#6

Merged
petre-c merged 2 commits into
mainfrom
feat/add-github-packages-publishing
Aug 4, 2025
Merged

feat: Add GitHub Packages publishing alongside NuGet.org#6
petre-c merged 2 commits into
mainfrom
feat/add-github-packages-publishing

Conversation

@petre-c

@petre-c petre-c commented Aug 4, 2025

Copy link
Copy Markdown
Contributor

Summary

  • ✅ Added dual package publishing to both NuGet.org and GitHub Packages
  • ✅ Fixed release workflow to trigger on GitHub release events
  • ✅ Split publishing into separate targets for flexibility

How It Works

When you create a GitHub Release:

  1. The release workflow automatically triggers
  2. Nuke builds and creates NuGet packages
  3. Packages are published to:
    • NuGet.org - Public distribution (requires NUGET_API_KEY secret)
    • GitHub Packages - Private/internal use (uses automatic GITHUB_TOKEN)

Changes Made

Nuke Build Updates

  • Created PublishToNuGet target for NuGet.org
  • Created PublishToGitHub target for GitHub Packages
  • Publish target now triggers both
  • GitHub Packages uses the automatic GITHUB_TOKEN

Workflow Fixes

  • Release workflow now triggers on release: published events
  • Manual workflow_dispatch trigger still available for testing

Package Locations

Test Plan

  • Nuke build compiles successfully
  • Version check passes (1.0.1)
  • Release workflow will trigger on GitHub release
  • Packages will publish to both registries

Collaboration by Claude

Petre Chitashvili added 2 commits August 4, 2025 16:39
The release workflow was only configured for manual dispatch.
Now it will also trigger automatically when a GitHub release is published.

This enables automatic NuGet package publishing when creating releases.

*Collaboration by Claude*
- Split Publish target into PublishToNuGet and PublishToGitHub
- Publish target now triggers both sub-targets
- GitHub Packages uses automatic GITHUB_TOKEN from Actions
- Release workflow triggers on GitHub release events
- Packages will be available at ghcr.io/appifysheets

This enables dual publishing:
1. NuGet.org for public package distribution
2. GitHub Packages for private/internal consumption

*Collaboration by Claude*
@petre-c petre-c merged commit 3620889 into main Aug 4, 2025
1 check passed
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.

1 participant