Skip to content

Commit 2a159e8

Browse files
authored
Update patch.yml
Publish to the github too.
1 parent b834821 commit 2a159e8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/patch.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,12 @@ jobs:
6969
dotnet-version: 10.0.x
7070
- name: Generate NuGet package
7171
run: dotnet pack --configuration Release --output ./packages
72-
- name: Publish NuGet package
72+
- name: Publish NuGet package to nuget
7373
run: dotnet nuget push ./packages/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
74+
- name: Add github source
75+
run: dotnet nuget add source --username TiLied --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/TiLied/index.json"
76+
- name: Publish NuGet package to github
77+
run: dotnet nuget push ./packages/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github"
7478
- run: cat ./CSharpToJavaScript.csproj
7579
- name: Upload nuget artifact
7680
uses: actions/upload-artifact@v7

0 commit comments

Comments
 (0)