Skip to content

Commit

Permalink
Merge pull request #69 from BloodHoundAD/publish_github_nuget
Browse files Browse the repository at this point in the history
feat: also publish packages to github nuget
  • Loading branch information
rvazarkar authored Aug 16, 2023
2 parents 46ad3ac + 02b4b13 commit 3fe17d5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/BloodHoundAD/index.json"

- name: Publish to GitHub Packages
run: dotnet nuget push *.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github"

ghpages:
name: ghpages
needs: nuget
Expand Down

0 comments on commit 3fe17d5

Please sign in to comment.