Skip to content

Commit 9fabc32

Browse files
authored
ci: azure devops requires a source to be configured (#65)
1 parent 9605418 commit 9fabc32

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,17 @@ jobs:
4949
run: dotnet pack --configuration Release --output ./out
5050

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

5454
- name: Publish NuGet packages to Azure Artifacts
55-
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
55+
run: |
56+
# https://github.com/NuGet/Home/issues/7792
57+
dotnet nuget add source "https://pkgs.dev.azure.com/1esSharedAssets/1esPkgs/_packaging/ComponentDetection/nuget/v3/index.json" \
58+
--name ado \
59+
--username unused \
60+
--password ${{ secrets.AZART_TOKEN }} \
61+
--store-password-in-clear-text
62+
dotnet nuget push "./out/*.nupkg" \
63+
--skip-duplicate \
64+
--source ado \
65+
--api-key unused

0 commit comments

Comments
 (0)