From a984c5b566ed3622bc8f34ee08572cb780f1763c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C3=96rneholm?= Date: Sun, 7 Apr 2024 15:56:30 +0200 Subject: [PATCH] Only build src --- .github/workflows/build_and_publish.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_and_publish.yml b/.github/workflows/build_and_publish.yml index 2678913..cf038c5 100644 --- a/.github/workflows/build_and_publish.yml +++ b/.github/workflows/build_and_publish.yml @@ -10,7 +10,7 @@ on: - '*' release: types: - - published # Run the workflow when a new GitHub release is published + - published jobs: build-and-test: @@ -37,16 +37,16 @@ jobs: run: dotnet restore --verbosity Detailed - name: Build - run: dotnet build --configuration Release --verbosity Detailed + run: dotnet build ${{ github.workspace }}/**/src/**/*.csproj --configuration Release --verbosity Detailed - name: Test - run: dotnet test --configuration Release --verbosity Detailed --collect "Code coverage" + run: dotnet test ${{ github.workspace }}/**/src/**/*.csproj --configuration Release --verbosity Detailed --collect "Code coverage" - name: Pack CI - run: dotnet pack --output ${{ github.workspace }}/artifacts/ci --configuration Release --verbosity Detailed /p:VersionSuffix=ci-${{ github.run_number }} + run: dotnet pack ${{ github.workspace }}/**/src/**/*.csproj --output ${{ github.workspace }}/artifacts/ci --configuration Release --verbosity Detailed /p:VersionSuffix=ci-${{ github.run_number }} - name: Pack Release - run: dotnet pack --output ${{ github.workspace }}/artifacts/release --configuration Release --verbosity Detailed + run: dotnet pack ${{ github.workspace }}/**/src/**/*.csproj --output ${{ github.workspace }}/artifacts/release --configuration Release --verbosity Detailed - uses: actions/upload-artifact@v3 with: