Skip to content

Commit 863e037

Browse files
Update package push step in CI workflow
Replaced NuGet push command with a custom feed push using curl.
1 parent ccc3863 commit 863e037

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/BuildAndTestOnEveryPush.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ jobs:
2121

2222
- name: Pack release version of task
2323
run: dotnet pack --configuration Release --include-source
24-
25-
- name: Push NuGet package to the testfeed
26-
run: dotnet nuget push Frends.Community.Multipart.SendMultipartRequest\bin\Release\Frends.Community.Multipart.SendMultipartRequest.*.nupkg --api-key ${{ secrets.COMMUNITY_FEED_API_KEY }} --source https://www.myget.org/F/frends-community-test/api/v2/package
24+
25+
- name: Push to Custom Feed
26+
run: |
27+
PACKAGE_FILE=$(find Frends.Community.Multipart.SendMultipartRequest\bin\Release -name "*.nupkg" ! -name "*.symbols.nupkg" | head -n 1)
28+
29+
curl -X POST "https://frends-fsp-cloudprod-agent.frendsapp.com/api/community-tasks/v1/push?feed_type=test" \
30+
-H "x-api-key: ${{ secrets.FRENDS_COMMUNITY_TASKS_API_KEY }}" \
31+
-H "Content-Type: application/octet-stream" \
32+
--data-binary @"$PACKAGE_FILE"

0 commit comments

Comments
 (0)