Skip to content

Commit 71d5316

Browse files
Replace MyGet
1 parent 93fdd3b commit 71d5316

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/build-and-test.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,15 @@ jobs:
192192
shell: pwsh
193193
run: ./ci-pack.ps1
194194

195-
- name: MyGet Publish
195+
- name: Feedz Publish
196196
shell: pwsh
197197
run: |
198-
dotnet nuget push .\artifacts\*.nupkg -k ${{secrets.MYGET_TOKEN}} -s https://www.myget.org/F/sixlabors/api/v2/package
199-
dotnet nuget push .\artifacts\*.snupkg -k ${{secrets.MYGET_TOKEN}} -s https://www.myget.org/F/sixlabors/api/v3/index.json
200-
# TODO: If github.ref starts with 'refs/tags' then it was tag push and we can optionally push out package to nuget.org
198+
dotnet nuget push .\artifacts\*.nupkg -k ${{secrets.FEEDZ_TOKEN}} -s https://f.feedz.io/sixlabors/sixlabors/nuget/index.json --skip-duplicate
199+
dotnet nuget push .\artifacts\*.snupkg -k ${{secrets.FEEDZ_TOKEN}} -s https://f.feedz.io/sixlabors/sixlabors/symbols --skip-duplicate
200+
- name: NuGet Publish
201+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
202+
shell: pwsh
203+
run: |
204+
dotnet nuget push .\artifacts\*.nupkg -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json --skip-duplicate
205+
dotnet nuget push .\artifacts\*.snupkg -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json --skip-duplicate
206+

0 commit comments

Comments
 (0)