diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..313df99 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 diff --git a/BitPay/BitPay.csproj b/BitPay/BitPay.csproj index 5a1df4d..0ebb4eb 100644 --- a/BitPay/BitPay.csproj +++ b/BitPay/BitPay.csproj @@ -2,10 +2,10 @@ - 6.0.0.0 - 6.0.0 - 6.0.0 - 6.0.0 + 6.0.1.0 + 6.0.1 + 6.0.1 + 6.0.1 Antonio Buedo BitPay Inc. BitPay, Inc. diff --git a/BitPay/Config.cs b/BitPay/Config.cs index 2557c71..6e36120 100644 --- a/BitPay/Config.cs +++ b/BitPay/Config.cs @@ -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"; } diff --git a/BitPayUnitTest/BitPayUnitTest.csproj b/BitPayUnitTest/BitPayUnitTest.csproj index 609a955..ea715de 100644 --- a/BitPayUnitTest/BitPayUnitTest.csproj +++ b/BitPayUnitTest/BitPayUnitTest.csproj @@ -1,7 +1,7 @@ - net48;net6.0;net7.0;net8.0 + net48;net8.0;net9.0 enable false true