Skip to content

Commit 4bf4846

Browse files
authored
Update wfnetcorev2.yaml
1 parent 3d41a85 commit 4bf4846

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/wfnetcorev2.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ env:
1919
# Official NuGet Feed settings
2020
NUGET_FEED: https://api.nuget.org/v3/index.json
2121
NUGET_KEY: ${{ secrets.NUGET_TOKEN }}
22+
2223
jobs:
2324
build:
2425
runs-on: ${{ matrix.os }}
@@ -83,13 +84,15 @@ jobs:
8384
uses: actions/setup-dotnet@v3
8485
with:
8586
dotnet-version: 7.x
86-
source-url: https://nuget.pkg.github.com/shaprcode-it/index.json
87+
# source-url: https://nuget.pkg.github.com/shaprcode-it/index.json
88+
- name: Add Github feed
89+
run: dotnet nuget add source --username ${{GITHUB_USER}} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/shaprcode-it/index.json"
8790
- name: List sources
8891
run: dotnet nuget list source
8992
- name: List sources
9093
run: dotnet --info
9194
- name: Publish the package to GitHub
92-
run: dotnet nuget push "*.nupkg"
95+
run: dotnet nuget push "*.nupkg" --source "github"
9396
deploy:
9497
needs: build
9598
if: github.event_name == 'release' && startsWith(github.ref, 'refs/heads/v')

0 commit comments

Comments
 (0)