From 487725698802ffd5faf73bd41a765a4336ff6825 Mon Sep 17 00:00:00 2001 From: Robin Munn Date: Thu, 18 Jul 2024 11:53:27 +0700 Subject: [PATCH] Actually publish to GitHub NuGet registry --- .github/workflows/nuget-ci-cd.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nuget-ci-cd.yml b/.github/workflows/nuget-ci-cd.yml index 1a0e941..08ed4c2 100644 --- a/.github/workflows/nuget-ci-cd.yml +++ b/.github/workflows/nuget-ci-cd.yml @@ -124,8 +124,9 @@ jobs: if: github.event_name == 'pull_request' || (github.event_name == 'push' && startsWith(github.ref, 'refs/heads')) shell: bash run: | - echo Would run the following: - echo dotnet nuget push artifacts/*.nupkg -s https://nuget.pkg.github.com/sillsdev/index.json -k 'GITHUB_TOKEN goes here' --skip-duplicate + dotnet nuget push artifacts/*.nupkg -s https://nuget.pkg.github.com/sillsdev/index.json -k "$NUGET_API_KEY" --skip-duplicate + env: + NUGET_API_KEY: ${{ secrets.GITHUB_TOKEN }} - name: Publish package to NuGet.org if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')