diff --git a/.github/workflows/dotnet-build.yml b/.github/workflows/dotnet-build.yml index 6dc5fba6d8..cdf000327e 100644 --- a/.github/workflows/dotnet-build.yml +++ b/.github/workflows/dotnet-build.yml @@ -170,13 +170,13 @@ jobs: - name: Copy NuGet Packages to Staging Directory if: runner.os == 'Windows' && !startsWith(github.ref, 'refs/tags/') run: | - source=".\\src" - filter="nupkg" - Get-ChildItem -Path $source -Recurse | Where-Object { $_.Extension -match $filter } | Copy-Item -Destination "${{ github.workspace }}/nuget" + mkdir -p ${{ github.workspace }}/nuget + Get-ChildItem -Path "./src" -Recurse | Where-Object { $_.Extension -match "nupkg" } | Copy-Item -Destination "${{ github.workspace }}/nuget" + shell: pwsh - name: Publish Packages if: runner.os == 'Windows' uses: actions/upload-artifact@v4 with: name: Packages - path: ${{ github.workspace }}/nuget \ No newline at end of file + path: ${{ github.workspace }}/nuget/