Skip to content

ci: also publish package to GitHub Packages#35

Merged
nord- merged 1 commit into
masterfrom
ci/publish-github-packages
Jun 11, 2026
Merged

ci: also publish package to GitHub Packages#35
nord- merged 1 commit into
masterfrom
ci/publish-github-packages

Conversation

@nord-

@nord- nord- commented Jun 11, 2026

Copy link
Copy Markdown
Owner

@

Vad

Lägger till ett steg i publish.yml som pushar samma .nupkg till GitHub Packages, utöver nuget.org.

Varför

GitHub-fliken "Packages" var tom eftersom workflowen bara publicerade till nuget.org. Nu speglas paketet även till GitHub Packages-registret så det syns på repot.

Ändringar

  • permissions: packages: write på publish-jobbet (krävs för GITHUB_TOKEN)
  • Nytt steg "Push to GitHub Packages" mot https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json med --skip-duplicate

Ingen ny secret behövs — inbyggda GITHUB_TOKEN används.
@

Copilot AI review requested due to automatic review settings June 11, 2026 09:04
@nord- nord- added the patch label Jun 11, 2026
@nord- nord- merged commit b41ca11 into master Jun 11, 2026
2 checks passed
@nord- nord- deleted the ci/publish-github-packages branch June 11, 2026 09:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the release publishing workflow to publish the built .nupkg to GitHub Packages in addition to nuget.org, so the repository’s “Packages” tab is populated and the package is mirrored to GitHub’s NuGet registry.

Changes:

  • Adds explicit job permissions (contents: read, packages: write) so GITHUB_TOKEN can publish packages.
  • Adds a new workflow step to dotnet nuget push the same .nupkg to nuget.pkg.github.com/... with --skip-duplicate.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants