Skip to content

Commit

Permalink
Merge pull request #784 from gkinsman/github-packages
Browse files Browse the repository at this point in the history
Publish pre-release packages to github packages
  • Loading branch information
gkinsman authored Sep 9, 2020
2 parents 19a6ede + 68a31f3 commit d8ab104
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ jobs:
name: packages-${{ matrix.os_name }}
path: ./artifacts/packages

- name: Publish pre-release NuGet packages to GitHub packages
run: dotnet nuget push "artifacts\packages\*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate --source https://nuget.pkg.github.com/justeat/index.json
if: ${{ github.repository_owner == 'justeat' && github.ref == 'refs/heads/master' && runner.os == 'Windows' }}

- name: Push NuGet packages to NuGet.org
run: dotnet nuget push "artifacts\packages\*.nupkg" --api-key ${{ secrets.NUGET_TOKEN }} --skip-duplicate --source https://api.nuget.org/v3/index.json
if: ${{ github.repository_owner == 'justeat' && startsWith(github.ref, 'refs/tags/v') && runner.os == 'Windows' }}

0 comments on commit d8ab104

Please sign in to comment.