Skip to content

Commit

Permalink
Republish to ADO feed (#7)
Browse files Browse the repository at this point in the history
* Republish to ADO feed

* check published release event

Co-authored-by: Greg Villicana <gregory.villicana@microsoft.com>
  • Loading branch information
tevoinea and grvillic authored Nov 19, 2021
1 parent d9099af commit e7a82f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Add NuGet publication source for Azure Artifacts Packaging feed
if: github.event_name == 'release'
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
env:
AZART_TOKEN: ${{ secrets.AZART_TOKEN }}

- name: Generate NuGet packages
if: github.event_name == 'release'
run: dotnet pack -o dist-nuget -c Release
Expand All @@ -77,5 +83,6 @@ jobs:
for f in ./dist-nuget/*.nupkg
do
curl -vX PUT -u "[user]:${{ secrets.GITHUB_TOKEN }}" -F package=@$f https://nuget.pkg.github.com/microsoft/
dotnet nuget push --source "Packaging" --api-key az $f
done
shell: bash

0 comments on commit e7a82f2

Please sign in to comment.