Skip to content

Commit

Permalink
ci: azure devops requires a source to be configured (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMagee authored Feb 9, 2022
1 parent 9605418 commit 9fabc32
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,17 @@ jobs:
run: dotnet pack --configuration Release --output ./out

- name: Publish NuGet packages to GitHub Packages
run: dotnet nuget push ./out/*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/${{ github.repository_owner }}
run: dotnet nuget push "./out/*.nupkg" --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/${{ github.repository_owner }}

- name: Publish NuGet packages to Azure Artifacts
run: dotnet nuget push ./out/*.nupkg --skip-duplicate --api-key ${{ secrets.AZART_TOKEN }} --source https://1essharedassets.pkgs.visualstudio.com/1esPkgs/_packaging/ComponentDetection/nuget/v3/index.json
run: |
# https://github.com/NuGet/Home/issues/7792
dotnet nuget add source "https://pkgs.dev.azure.com/1esSharedAssets/1esPkgs/_packaging/ComponentDetection/nuget/v3/index.json" \
--name ado \
--username unused \
--password ${{ secrets.AZART_TOKEN }} \
--store-password-in-clear-text
dotnet nuget push "./out/*.nupkg" \
--skip-duplicate \
--source ado \
--api-key unused

0 comments on commit 9fabc32

Please sign in to comment.