Skip to content

Commit 76bbf22

Browse files
authored
Update wfnetcorev2.yaml
1 parent ee9fc76 commit 76bbf22

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/wfnetcorev2.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,18 @@ jobs:
8787
with:
8888
dotnet-version: 7.x
8989
# source-url: https://nuget.pkg.github.com/shaprcode-it/index.json
90-
- name: Add Github feed
91-
run: dotnet nuget add source --username iscifoni --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/shaprcode-it/index.json"
92-
- name: List sources
93-
run: dotnet nuget list source
94-
- name: List sources
95-
run: dotnet --info
96-
- name: Publish the package to GitHub
97-
run: dotnet nuget push "*.nupkg" --source https://nuget.pkg.github.com/shaprcode-it/index.json --api-key $GITHUB_TOKEN
90+
# - name: Add Github feed
91+
# run: dotnet nuget add source --username iscifoni --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/shaprcode-it/index.json"
92+
# - name: List sources
93+
# run: dotnet nuget list source
94+
- name: Push to GitHub Feed
95+
run: |
96+
for f in ./nupkg/*.nupkg
97+
do
98+
curl -vX PUT -u "$GITHUB_USER:$GITHUB_TOKEN" -F package=@$f $GITHUB_FEED
99+
done
100+
# - name: Publish the package to GitHub
101+
# run: dotnet nuget push "*.nupkg" --source https://nuget.pkg.github.com/shaprcode-it/index.json --api-key $GITHUB_TOKEN
98102
deploy:
99103
needs: build
100104
if: github.event_name == 'release' && startsWith(github.ref, 'refs/heads/v')

0 commit comments

Comments
 (0)