Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Release Build

on:
release:
types:
- published

jobs:
build-release-package:
runs-on: windows-2022

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup .NET 8.0
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0'

- name: Setup .NET 9.0
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0'

- name: Setup MSBuild for .NET Framework 4.8
uses: microsoft/setup-msbuild@v3

- name: Restore dependencies
run: dotnet restore

- name: Build for all targets
run: dotnet build --configuration Release --no-restore

- name: Run tests for net8.0
run: dotnet test BitPayUnitTest --configuration Release --no-build --verbosity normal -f net8.0

- name: Run tests for net9.0
run: dotnet test BitPayUnitTest --configuration Release --no-build --verbosity normal -f net9.0

- name: Run tests for net48
run: dotnet test BitPayUnitTest --configuration Release --no-build --verbosity normal -f net48

- name: Pack NuGet package
run: dotnet pack BitPay/BitPay.csproj --configuration Release --no-build --output ./artifacts

- name: Upload NuGet package
uses: actions/upload-artifact@v7
with:
name: bitpay-nuget-package
path: ./artifacts/*.nupkg
retention-days: 90

- name: Upload symbol package
uses: actions/upload-artifact@v7
with:
name: bitpay-symbol-package
path: ./artifacts/*.snupkg
retention-days: 90
8 changes: 4 additions & 4 deletions BitPay/BitPay.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

<PropertyGroup>
<!-- version numbers will be updated by build -->
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<FileVersion>6.0.0</FileVersion>
<VersionPrefix>6.0.0</VersionPrefix>
<Version>6.0.0</Version>
<AssemblyVersion>6.0.1.0</AssemblyVersion>
<FileVersion>6.0.1</FileVersion>
<VersionPrefix>6.0.1</VersionPrefix>
<Version>6.0.1</Version>
<Authors>Antonio Buedo</Authors>
<Company>BitPay Inc.</Company>
<Owners>BitPay, Inc.</Owners>
Expand Down
2 changes: 1 addition & 1 deletion BitPay/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public static class Config
public const string TestUrl = "https://test.bitpay.com/";
public const string ProdUrl = "https://bitpay.com/";
public const string BitPayApiVersion = "2.0.0";
public const string BitPayPluginInfo = "BitPay_DotNet_Client_v6.0.0";
public const string BitPayPluginInfo = "BitPay_DotNet_Client_v6.0.1";
public const string BitPayApiFrame = "std";
public const string BitPayApiFrameVersion = "1.0.0";
}
Expand Down
2 changes: 1 addition & 1 deletion BitPayUnitTest/BitPayUnitTest.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net48;net6.0;net7.0;net8.0</TargetFrameworks>
<TargetFrameworks>net48;net8.0;net9.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
Expand Down
Loading