Skip to content

Commit 3fe17d5

Browse files
authored
Merge pull request #69 from BloodHoundAD/publish_github_nuget
feat: also publish packages to github nuget
2 parents 46ad3ac + 02b4b13 commit 3fe17d5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,17 @@ jobs:
3838
path: docfx/coverage/report/
3939

4040
- name: Pack
41-
run: dotnet pack --include-symbols --no-restore -c Release -p:PackageVersion=${{ steps.version.outputs.result }} -o .
41+
run: dotnet pack --no-restore -c Release -p:PackageVersion=${{ steps.version.outputs.result }} -o .
4242

4343
- name: Publish NuGet
4444
run: dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_TOKEN }}
4545

46+
- name: Prep Packages
47+
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"
48+
49+
- name: Publish to GitHub Packages
50+
run: dotnet nuget push *.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github"
51+
4652
ghpages:
4753
name: ghpages
4854
needs: nuget

0 commit comments

Comments
 (0)