From a15d1d2cdf7b72a6af4c2028dc7fec7195fb96df Mon Sep 17 00:00:00 2001 From: rvazarkar Date: Tue, 15 Aug 2023 11:45:20 -0400 Subject: [PATCH 1/2] feat: also publish packages to github nuget --- .github/workflows/publish.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e125fc1e..b0f87c70 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -38,11 +38,17 @@ jobs: path: docfx/coverage/report/ - name: Pack - run: dotnet pack --include-symbols --no-restore -c Release -p:PackageVersion=${{ steps.version.outputs.result }} -o . + run: dotnet pack --no-restore -c Release -p:PackageVersion=${{ steps.version.outputs.result }} -o . - name: Publish NuGet run: dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_TOKEN }} + - name: Prep Packages + run: dotnet nuget add source --username {{github.actor}} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/SpecterOps/index.json" + + - name: Publish to GitHub Packages + run: dotnet nuget push *.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" + ghpages: name: ghpages needs: nuget From 02b4b1328233db6f340ffda814180a8df282059c Mon Sep 17 00:00:00 2001 From: rvazarkar Date: Wed, 16 Aug 2023 13:35:30 -0400 Subject: [PATCH 2/2] fix: publish to the correct index --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b0f87c70..bf11e248 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -44,7 +44,7 @@ jobs: run: dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_TOKEN }} - name: Prep Packages - run: dotnet nuget add source --username {{github.actor}} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/SpecterOps/index.json" + run: dotnet nuget add source --username {{github.actor}} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/BloodHoundAD/index.json" - name: Publish to GitHub Packages run: dotnet nuget push *.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github"