File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 66
66
env :
67
67
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
68
68
69
+ - name : Add NuGet publication source for Azure Artifacts Packaging feed
70
+ if : github.event_name == 'release'
71
+ run : dotnet nuget add source https://1essharedassets.pkgs.visualstudio.com/1esPkgs/_packaging/ComponentDetection/nuget/v3/index.json --password $AZART_TOKEN --username az --store-password-in-clear-text --name Packaging
72
+ env :
73
+ AZART_TOKEN : ${{ secrets.AZART_TOKEN }}
74
+
69
75
- name : Generate NuGet packages
70
76
if : github.event_name == 'release'
71
77
run : dotnet pack -o dist-nuget -c Release
77
83
for f in ./dist-nuget/*.nupkg
78
84
do
79
85
curl -vX PUT -u "[user]:${{ secrets.GITHUB_TOKEN }}" -F package=@$f https://nuget.pkg.github.com/microsoft/
86
+ dotnet nuget push --source "Packaging" --api-key az $f
80
87
done
81
88
shell : bash
You can’t perform that action at this time.
0 commit comments