From a7108986f00199aa9b1dc57923e115bd157afbba Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 26 Apr 2022 14:19:18 +0200 Subject: [PATCH] Add GitHub packages upload to CI script --- .github/workflows/dotnet.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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