diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 52e944dc..bd1fc35e 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -274,4 +274,19 @@ jobs: dotnet-version: 6.0.x - name: Run ComputeSharp.Tests.NativeLibrariesResolver run: dotnet test tests\ComputeSharp.Tests.NativeLibrariesResolver\ComputeSharp.Tests.NativeLibrariesResolver.csproj -v n -l "console;verbosity=detailed" - shell: cmd \ No newline at end of file + shell: cmd + + publish-nightlies-github: + needs: [ run-dx12-tests, run-d2d1-tests, run-dx12-samples, verify-packages, verify-package-native-libs ] + runs-on: windows-2022 + if: ${{github.event_name == 'push'}} + steps: + - uses: actions/download-artifact@v2 + with: + name: nuget_preview + path: artifacts + - uses: actions/setup-dotnet@v1 + with: + dotnet-version: 6.0.x + - run: dotnet nuget push "artifacts\*.nupkg" --source "https://nuget.pkg.github.com/ComputeSharp/index.json" --api-key ${{secrets.GITHUB_TOKEN}} --skip-duplicate + shell: cmd