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 Nov 4, 2019
1 parent e7b5832 commit 5c8c960
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 @@ -47,3 +47,16 @@ jobs:
export REPOSITORY_NAME=$(basename ${{ github.repository }})
wget "$SCRIPTS_BASE_URL/publish-release.sh"
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 5c8c960

Please sign in to comment.