dotnet-gha-publish

Automate .NET artifact publishing from GitHub Actions workflows.

71|10|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/wshaddix/dotnet-skills --skill dotnet-gha-publish-wshaddix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-gha-publish
Source: https://github.com/wshaddix/dotnet-skills/tree/main/skills/dotnet-gha-publish
Command: npx skills add https://github.com/wshaddix/dotnet-skills --skill dotnet-gha-publish-wshaddix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of publishing various .NET artifacts from GitHub Actions, ensuring your packages, container images, and signed binaries are reliably deployed.

Core Features & Use Cases

  • NuGet Publishing: Push packages to nuget.org, GitHub Packages, or both, triggered by tags.
  • Container Image Deployment: Build and push Docker images to registries like GHCR, DockerHub, or ACR, using either Dockerfiles or SDK container publish.
  • Artifact Signing & SBOM: Secure your artifacts with signing and generate Software Bills of Materials (SBOM) for supply chain transparency.
  • Conditional Workflows: Configure publishing to occur only on specific tags or when a GitHub Release is published.

Quick Start

Use the dotnet-gha-publish skill to publish a NuGet package to nuget.org when a tag starting with 'v' is pushed.

Frequently Asked Questions about dotnet-gha-publish

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I publish a NuGet package from GitHub Actions?

To publish a NuGet package from GitHub Actions, you can configure a workflow that triggers on tag pushes to push your packages to nuget.org or GitHub Packages using the actions/setup-dotnet action. This skill automates that deployment process.

How does GitHub Actions deploy .NET container images to DockerHub?

Deploying .NET container images to DockerHub from GitHub Actions involves building and pushing the image using the docker/build-push-action. This skill supports both Dockerfiles and SDK container publish methods for registries like GHCR, DockerHub, and ACR.

Can I generate an SBOM and sign .NET artifacts in a CI/CD pipeline?

Yes, you can generate a Software Bill of Materials and sign .NET artifacts in a CI/CD pipeline using sigstore/cosign. This skill secures your deployed binaries and NuGet packages to ensure supply chain transparency.

Does this publishing workflow support conditional triggers like GitHub Releases?

Yes, this publishing workflow supports conditional triggers, allowing you to configure artifact deployment to occur only when specific tags are pushed or when a GitHub Release is published, preventing unintended releases.

What is the best way to push .NET artifacts to multiple registries simultaneously?

The best way to push .NET artifacts to multiple registries simultaneously is to configure your GitHub Actions workflow to target both nuget.org and GitHub Packages. This skill streamlines multi-target publishing for NuGet packages and Docker images.