From 92e80d34211d2cb9190c53b0ccfcca980d5d49b7 Mon Sep 17 00:00:00 2001 From: John Azariah Date: Wed, 3 Jul 2024 22:58:03 +1000 Subject: [PATCH] Restore, Build and Pack in one step --- .github/workflows/ci.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1baf2ac..2647aad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,17 +35,14 @@ jobs: with: dotnet-version: 8.0.x - - name: Restore dependencies - run: dotnet restore --configuration Release - - name: Build - run: dotnet build --configuration Release --no-restore + run: dotnet build --configuration Release --property:PackageOutputPath=${{ env.NuGetDirectory }} - name: Test run: dotnet test --configuration Release --no-build --verbosity normal - - name: Pack - run: dotnet pack --configuration Release "src/CSharp.UnionTypes.SourceGenerator" --output ${{ env.NuGetDirectory }} + #- name: Pack + # run: dotnet pack --configuration Release "src/CSharp.UnionTypes.SourceGenerator" --output ${{ env.NuGetDirectory }} # Publish the NuGet package as an artifact, so they can be used in the following jobs - uses: actions/upload-artifact@v4