Skip to content

Commit 15ad2df

Browse files
committed
Add MyGet RC feed to workflow
1 parent c4ff4a7 commit 15ad2df

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/build-package.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ on:
1818
required: false
1919
type: boolean
2020
default: true
21+
publish-myget-rc:
22+
description: 'Publish to MyGet.org RC feed'
23+
required: false
24+
type: boolean
25+
default: false
2126
publish-nuget-org:
2227
description: 'Publish to NuGet.org'
2328
required: false
@@ -62,7 +67,12 @@ jobs:
6267
run: |
6368
dotnet nuget push "build\output\*.nupkg" -k ${{ secrets.MYGET_TOKEN }} -s https://www.myget.org/F/opensilver/api/v2/package
6469
70+
- name: Upload packages to MyGet RC feed
71+
if: ${{ inputs['publish-myget-rc'] }}
72+
run: |
73+
dotnet nuget push "build\output\*.nupkg" -k ${{ secrets.MYGET_RC_TOKEN }} -s ${{ secrets.MYGET_RC_FEED }}
74+
6575
- name: Upload packages to NuGet.org
6676
if: ${{ inputs['publish-nuget-org'] }}
6777
run: |
68-
dotnet nuget push "build\output\*.nupkg" -k ${{ secrets.NUGET_ORG_API_KEY }} -s https://api.nuget.org/v3/index.json
78+
dotnet nuget push "build\output\*.nupkg" -k ${{ secrets.NUGET_ORG_API_KEY }} -s https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)