Skip to content

Convert CI to GitHub Actions with NuGet publishing; remove package publishing from Azure Pipelines - #229

Merged
304NotModified merged 4 commits into
masterfrom
copilot/remove-old-build-package-push
Mar 7, 2026
Merged

Convert CI to GitHub Actions with NuGet publishing; remove package publishing from Azure Pipelines#229
304NotModified merged 4 commits into
masterfrom
copilot/remove-old-build-package-push

Conversation

Copilot AI commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

Azure Pipelines was handling build, test, SonarCloud analysis, and NuGet publishing in a single pipeline. The goal is to move build/test and NuGet publishing to GitHub Actions while keeping SonarCloud in Azure Pipelines, and stop the old pipeline from creating/pushing packages.

Changes

  • .github/workflows/build.yml (new): GitHub Actions workflow triggered on push to master, all PRs, and manually via workflow_dispatch. Runs restore → build → test → pack via dotnet CLI on windows-latest with .NET 8. Uploads the nupkg as a workflow artifact on every run. On master, logs in to NuGet.org via OIDC (NuGet/login@v1 with secrets.NUGET_USER) and pushes the package with --skip-duplicate. GITHUB_TOKEN scoped to contents: read and id-token: write.

  • azure-pipelines.yml: Removed the CopyFiles, PublishBuildArtifacts, and both NuGet push steps. Pipeline now only runs restore → SonarCloud prepare → VSBuild → VSTest → SonarCloud analyze/publish.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

… Pipelines

Co-authored-by: 304NotModified <5808377+304NotModified@users.noreply.github.com>
@pull-request-size pull-request-size Bot added size/M and removed size/XS labels Mar 7, 2026
Copilot AI changed the title [WIP] Remove old build and package push functionality Convert CI to GitHub Actions; remove package publishing from Azure Pipelines Mar 7, 2026
@304NotModified

Copy link
Copy Markdown
Member

@copilot allow manual run and also add publish to nuget, see 304NotModified/SLNX-validator#1

…kflow

Co-authored-by: 304NotModified <5808377+304NotModified@users.noreply.github.com>

Copilot AI commented Mar 7, 2026

Copy link
Copy Markdown
Contributor Author

@copilot allow manual run and also add publish to nuget, see 304NotModified/SLNX-validator#1

Done in 3dfb15b. Added workflow_dispatch for manual runs and the full NuGet publish pipeline:

  • Pack → creates nupkg in artifacts/
  • Upload nuget package → uploads as a workflow artifact
  • NuGet login (master only) → OIDC via NuGet/login@v1 with secrets.NUGET_USER
  • Push to NuGet.org (master only) → uses the API key from the login step with --skip-duplicate

Copilot AI changed the title Convert CI to GitHub Actions; remove package publishing from Azure Pipelines Convert CI to GitHub Actions with NuGet publishing; remove package publishing from Azure Pipelines Mar 7, 2026
@304NotModified
304NotModified marked this pull request as ready for review March 7, 2026 20:16
@304NotModified

Copy link
Copy Markdown
Member

@copilot run under Windows

Co-authored-by: 304NotModified <5808377+304NotModified@users.noreply.github.com>

Copilot AI commented Mar 7, 2026

Copy link
Copy Markdown
Contributor Author

@copilot run under Windows

Done in 9f28ac3. Changed runs-on from ubuntu-latest to windows-latest.

@sonarqubecloud

sonarqubecloud Bot commented Mar 7, 2026

Copy link
Copy Markdown

@304NotModified
304NotModified merged commit 87d402e into master Mar 7, 2026
5 checks passed
@304NotModified
304NotModified deleted the copilot/remove-old-build-package-push branch March 7, 2026 20:56
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