Skip to content

Commit

Permalink
Try passing API key via environment
Browse files Browse the repository at this point in the history
Just to check that it still works
  • Loading branch information
rmunn committed Jul 18, 2024
1 parent 3e12137 commit 45e9f9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/nuget-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ jobs:
if: github.event_name == 'pull_request' || (github.event_name == 'push' && startsWith(github.ref, 'refs/heads'))
shell: bash
run: |
dotnet nuget push "src/artifacts/package/release/*.symbols.nupkg" -s https://nuget.pkg.github.com/sillsdev/index.json -k "${{ secrets.GITHUB_TOKEN }}" --skip-duplicate
dotnet nuget push "src/artifacts/package/release/*.symbols.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')
Expand Down

0 comments on commit 45e9f9a

Please sign in to comment.