diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 011ffc0..14949f4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -64,8 +64,13 @@ jobs: with: dotnet-version: 10.x + # Build the project first so that staticwebassets.build.json manifest is generated + - name: Build + run: dotnet build --configuration Release --no-restore + # Create the NuGet package in the folder from the environment variable NuGetDirectory - - run: dotnet pack --configuration Release --output ${{ env.NuGetDirectory }} + - name: Create NuGet package + run: dotnet pack --configuration Release --no-build --output ${{ env.NuGetDirectory }} # Publish the NuGet package as an artifact, so they can be used in the following jobs - uses: actions/upload-artifact@v7