From a67ae78d5ac972ac49b21e032816112f5d12f623 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Tue, 12 Mar 2024 02:02:06 -0300 Subject: [PATCH] Upload binlog artifact on debug runs --- .github/workflows/build.yml | 9 ++++++++- .github/workflows/publish.yml | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8235c91..14fdf11 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,7 +58,7 @@ jobs: fetch-depth: 0 - name: ๐Ÿ™ build - run: dotnet build -m:1 + run: dotnet build -m:1 -bl:build.binlog - name: โš™ GNU grep if: matrix.os == 'macOS-latest' @@ -69,6 +69,13 @@ jobs: - name: ๐Ÿงช test uses: ./.github/workflows/test + - name: ๐Ÿ› logs + uses: actions/upload-artifact@v3 + if: runner.debug && always() + with: + name: logs + path: '*.binlog' + # Only push CI package to sleet feed if building on ubuntu (fastest) - name: ๐Ÿš€ sleet env: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0f81739..b802281 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,10 +24,17 @@ jobs: fetch-depth: 0 - name: ๐Ÿ™ build - run: dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v} + run: dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v} -bl:build.binlog - name: ๐Ÿงช test uses: ./.github/workflows/test + - name: ๐Ÿ› logs + uses: actions/upload-artifact@v3 + if: runner.debug && always() + with: + name: logs + path: '*.binlog' + - name: ๐Ÿš€ nuget run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate