Skip to content

Commit 3ad189d

Browse files
authored
Publish packages to feedz.io (#1719)
* Publish packages to feedz.io * Remove duplicate warning suppression * Update feed instructions in README
1 parent ecc0759 commit 3ad189d

File tree

3 files changed

+19
-15
lines changed

3 files changed

+19
-15
lines changed

.github/workflows/build.yml

+8
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,14 @@ jobs:
270270
run: |
271271
dotnet nuget add source --username 'json-api-dotnet' --password "$env:GITHUB_TOKEN" --store-password-in-clear-text --name 'github' 'https://nuget.pkg.github.com/json-api-dotnet/index.json'
272272
dotnet nuget push "$env:GITHUB_WORKSPACE/packages/*.nupkg" --api-key "$env:GITHUB_TOKEN" --source 'github'
273+
- name: Publish to feedz.io
274+
if: github.event_name == 'push' || github.event_name == 'release'
275+
env:
276+
FEEDZ_IO_API_KEY: ${{ secrets.FEEDZ_IO_API_KEY }}
277+
shell: pwsh
278+
run: |
279+
dotnet nuget add source --name 'feedz-io' 'https://f.feedz.io/json-api-dotnet/jsonapidotnetcore/nuget/index.json'
280+
dotnet nuget push "$env:GITHUB_WORKSPACE/packages/*.nupkg" --api-key "$env:FEEDZ_IO_API_KEY" --source 'feedz-io'
273281
- name: Publish documentation
274282
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
275283
uses: peaceiris/actions-gh-pages@v4

Directory.Build.props

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<VersionSuffix>pre</VersionSuffix>
1414
<OpenApiPreviewNumber>1</OpenApiPreviewNumber>
1515
<NuGetAuditMode>direct</NuGetAuditMode>
16-
<NoWarn>$(NoWarn);NETSDK1215</NoWarn>
1716
</PropertyGroup>
1817

1918
<PropertyGroup>

README.md

+11-14
Original file line numberDiff line numberDiff line change
@@ -228,24 +228,21 @@ See also our [versioning policy](./VERSIONING_POLICY.md).
228228

229229
## Trying out the latest build
230230

231-
After each commit to the master branch, a new pre-release NuGet package is automatically published to [GitHub Packages](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry).
231+
After each commit to the master branch, a new pre-release NuGet package is automatically published to [feedz.io](https://feedz.io/docs/package-types/nuget).
232232
To try it out, follow the steps below:
233233

234-
1. [Create a Personal Access Token (classic)](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic) with at least `read:packages` scope.
235-
1. Add our package source to your local user-specific `nuget.config` file by running:
236-
```bash
237-
dotnet nuget add source https://nuget.pkg.github.com/json-api-dotnet/index.json --name github-json-api --username YOUR-GITHUB-USERNAME --password YOUR-PAT-CLASSIC
234+
1. Create a `nuget.config` file in the same directory as your .sln file, with the following contents:
235+
```xml
236+
<?xml version="1.0" encoding="utf-8"?>
237+
<configuration>
238+
<packageSources>
239+
<add key="json-api-dotnet" value="https://f.feedz.io/json-api-dotnet/jsonapidotnetcore/nuget/index.json" />
240+
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
241+
</packageSources>
242+
</configuration>
238243
```
239-
In the command above:
240-
- Replace YOUR-GITHUB-USERNAME with the username you use to login your GitHub account.
241-
- Replace YOUR-PAT-CLASSIC with the token your created above.
242244

243-
:warning: If the above command doesn't give you access in the next step, remove the package source by running:
244-
```bash
245-
dotnet nuget remove source github-json-api
246-
```
247-
and retry with the `--store-password-in-clear-text` switch added.
248-
1. Restart your IDE, open your project, and browse the list of packages from the github-json-api feed (make sure pre-release packages are included).
245+
1. In your IDE, browse the list of packages from the `json-api-dotnet` feed. Make sure pre-release packages are included in the list.
249246

250247
## Contributing
251248

0 commit comments

Comments
 (0)