From 1fc0eb62297573efc67d519af6778f48d4797c29 Mon Sep 17 00:00:00 2001 From: Kevin Hahn Date: Thu, 18 Jul 2024 21:22:09 -0600 Subject: [PATCH] add a built step to publish pr builds to the github nuget registry (#303) --- .github/workflows/ci-cd.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 64a89cbc..19ebb4e2 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -46,7 +46,7 @@ jobs: - name: Solve problems run: Remove-Item c:\tools\php\icuuc*.dll -Force if: matrix.os == 'windows-latest' - + - name: Download 461 targeting pack uses: suisei-cn/actions-download-file@818d6b7dc8fe73f2f924b6241f2b1134ca1377d9 # 1.6.0 id: downloadfile # Remember to give an ID if you need the output filename @@ -54,7 +54,7 @@ jobs: url: "https://download.microsoft.com/download/F/1/D/F1DEB8DB-D277-4EF9-9F48-3A65D4D8F965/NDP461-DevPack-KB3105179-ENU.exe" target: public/ if: matrix.os == 'windows-latest' - + - name: Install targeting pack shell: cmd working-directory: public @@ -81,6 +81,10 @@ jobs: run: dotnet nuget push artifacts/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.SILLSDEV_PUBLISH_NUGET_ORG}} --skip-duplicate if: github.event_name == 'push' && matrix.os == 'ubuntu-latest' + - name: Publish to Github packages + if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' + run: dotnet nuget push artifacts/*.nupkg -s https://nuget.pkg.github.com/sillsdev/index.json -k ${{secrets.GITHUB_TOKEN}} --skip-duplicate + - name: Publish Artifacts uses: actions/upload-artifact@v3 with: