Skip to content

Add Release Build GitHub Action#177

Open
swlodarski-sumoheavy wants to merge 7 commits intobitpay:6.0.xfrom
swlodarski-sumoheavy:6.0.x-release
Open

Add Release Build GitHub Action#177
swlodarski-sumoheavy wants to merge 7 commits intobitpay:6.0.xfrom
swlodarski-sumoheavy:6.0.x-release

Conversation

@swlodarski-sumoheavy
Copy link
Collaborator

@swlodarski-sumoheavy swlodarski-sumoheavy commented Mar 24, 2026

Adds a new GitHub Actions workflow that automatically builds and packages the BitPay NuGet package for release when a new GitHub release is published.

What's Changed

  • New workflow: release.yml
    • Triggered automatically when a GitHub release is published
    • Runs on Windows 2022 to support all target frameworks
  • Bump version to 6.0.1

Features

  • Multi-target build: Compiles the library for all supported frameworks:
    • .NET Framework 4.8 (net48)
    • .NET 8.0 (net8.0)
    • .NET 9.0 (net9.0)
  • Test validation: Runs unit tests across all supported test frameworks before packaging
  • NuGet artifact creation:
    • Creates multi-targeted NuGet package (.nupkg) containing binaries for all frameworks
    • Generates symbol package (.snupkg) for debugging support
    • Uploads both as workflow artifacts with 90-day retention

Usage

  1. Create a new GitHub release from the Releases page
  2. The workflow will automatically trigger and build the package
  3. Download the NuGet package from the workflow run's artifacts

Benefits

  • Ensures consistent, reproducible builds for releases
  • Validates all tests pass before packaging
  • Provides downloadable artifacts for manual verification before publishing to NuGet.org
  • Single package contains all target framework versions

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