From 4855be5149f7bcf80c868e8ee126e06ba4bc0605 Mon Sep 17 00:00:00 2001 From: David Tchepak Date: Sat, 20 Apr 2024 18:10:21 +1000 Subject: [PATCH] Release build workflow --- .github/workflows/release_build.yml | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/release_build.yml diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml new file mode 100644 index 00000000..4dc61332 --- /dev/null +++ b/.github/workflows/release_build.yml @@ -0,0 +1,44 @@ +name: Release build +on: + workflow_dispatch: + push: + # tags: + # - 'v*' + +env: + CONFIGURATION: Release + +jobs: + build: + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 6.0.x + 7.0.x + 8.0.x + + - name: Setup Ruby for documentation build + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.2' + bundler-cache: true + + - name: Build package and docs + run: dotnet run --project 'build/build.fsproj' -- -t All + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + path: | + bin/Release/NSubstitute/*.nupkg + bin/Release/NSubstitute/*.snupkg + bin/Release/nsubstitute.github.com/ +