Skip to content

Commit

Permalink
Actually publish to GitHub NuGet registry
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed Jul 18, 2024
1 parent 443810c commit 4877256
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/nuget-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 4877256

Please sign in to comment.