Skip to content

Commit

Permalink
Added support for pushing the NuGet package to the GitHub Package Reg…
Browse files Browse the repository at this point in the history
…istry.
  • Loading branch information
Konard authored Oct 22, 2019
1 parent 76d4fbc commit 77e75ff
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,16 @@ jobs:
run: |
export REPOSITORY_NAME=$(basename ${{ github.repository }})
bash ./publish-release.sh
pushNuGetToGitHubPackageRegistry:
needs: buildAndDeploy
if: github.event_name == 'push'
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: warrenbuckley/Setup-Nuget@v1
- name: Publish to GitHub Package Registry
run: |
dotnet pack -c Release
nuget source Add -Name "GitHub" -Source "https://nuget.pkg.github.com/linksplatform/index.json" -UserName linksplatform -Password ${{ secrets.GITHUB_TOKEN }}
nuget push **/*.nupkg -Source "GitHub" -SkipDuplicate

0 comments on commit 77e75ff

Please sign in to comment.