Skip to content

Commit

Permalink
Add step to publish PR packages to GitHub registry
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed Jul 17, 2024
1 parent afce442 commit 443810c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/nuget-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ jobs:
name: nuget-packages
path: src/artifacts/package/release/*nupkg

- name: Publish package to GitHub
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
- name: Publish package to NuGet.org
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
shell: bash
Expand Down

0 comments on commit 443810c

Please sign in to comment.