Skip to content

Publish standalone single-file binaries in GitHub Releases - #1527

Merged
StefH merged 2 commits into
wiremock:masterfrom
tomas-pinto:master
Oct 30, 2026
Merged

StefH merged 2 commits into
wiremock:masterfrom
tomas-pinto:master

Conversation

@tomas-pinto

Copy link
Copy Markdown
Contributor

Currently, running WireMock.Net as a standalone CLI tool requires either having the .NET SDK installed (dotnet tool install -g dotnet-wiremock), building a custom console project, or using Docker. Providing ready-to-use, self-contained standalone executables directly in GitHub Releases makes it much easier for users and CI/CD pipelines across ecosystems to download and run WireMock.Net out of the box without needing a pre-installed .NET runtime or container engine.

This PR updates the release workflow to publish self-contained, single-file dotnet-WireMock binaries for Windows (win-x64, win-arm64), Linux (linux-x64, linux-arm64), and macOS (osx-x64, osx-arm64), and attaches them as .zip / .tar.gz archives to each GitHub Release:

  • src/dotnet-WireMock.Net/dotnet-WireMock.csproj: Make PackAsTool and GeneratePackageOnBuild conditional on '$(PublishSingleFile)' != 'true' so that single-file publishing works alongside standard .NET global tool packaging.
  • .github/workflows/CreateRelease.yml: Build and package self-contained single-file executables for each target platform, upload them as workflow artifacts, and attach them to the GitHub Release when triggered by a release tag (also adds workflow_dispatch for manual workflow testing).

@StefH StefH added the feature label Oct 30, 2026
@StefH
StefH merged commit f0965e5 into wiremock:master Oct 30, 2026
6 checks passed
This was referenced Nov 8, 2026
This was referenced Nov 23, 2026
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