Skip to content

Commit e7a82f2

Browse files
tevoineagrvillic
andauthored
Republish to ADO feed (#7)
* Republish to ADO feed * check published release event Co-authored-by: Greg Villicana <[email protected]>
1 parent d9099af commit e7a82f2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: .github/workflows/build-release.yml

+7
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ jobs:
6666
env:
6767
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6868

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+
6975
- name: Generate NuGet packages
7076
if: github.event_name == 'release'
7177
run: dotnet pack -o dist-nuget -c Release
@@ -77,5 +83,6 @@ jobs:
7783
for f in ./dist-nuget/*.nupkg
7884
do
7985
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
8087
done
8188
shell: bash

0 commit comments

Comments
 (0)