From 479cdbf1a9362f21cdf9e51399c36320d16f5ab2 Mon Sep 17 00:00:00 2001
From: Bart Koelman <10324372+bkoelman@users.noreply.github.com>
Date: Wed, 23 Apr 2025 03:44:16 +0200
Subject: [PATCH 1/3] Publish packages to feedz.io
---
.github/workflows/build.yml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 7ee1333bd..bc38da9f3 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -270,6 +270,14 @@ jobs:
run: |
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'
dotnet nuget push "$env:GITHUB_WORKSPACE/packages/*.nupkg" --api-key "$env:GITHUB_TOKEN" --source 'github'
+ - name: Publish to feedz.io
+ if: github.event_name == 'push' || github.event_name == 'release'
+ env:
+ FEEDZ_IO_API_KEY: ${{ secrets.FEEDZ_IO_API_KEY }}
+ shell: pwsh
+ run: |
+ dotnet nuget add source --name 'feedz-io' 'https://f.feedz.io/json-api-dotnet/jsonapidotnetcore/nuget/index.json'
+ dotnet nuget push "$env:GITHUB_WORKSPACE/packages/*.nupkg" --api-key "$env:FEEDZ_IO_API_KEY" --source 'feedz-io'
- name: Publish documentation
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v4
From 9b8d3015184aa6350c7594f5689432b37b41e16d Mon Sep 17 00:00:00 2001
From: Bart Koelman <10324372+bkoelman@users.noreply.github.com>
Date: Wed, 23 Apr 2025 04:42:32 +0200
Subject: [PATCH 2/3] Remove duplicate warning suppression
---
Directory.Build.props | 1 -
1 file changed, 1 deletion(-)
diff --git a/Directory.Build.props b/Directory.Build.props
index 5f4e71ab7..425f6320c 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -13,7 +13,6 @@
pre
1
direct
- $(NoWarn);NETSDK1215
From dc7d14755899532cc76c1f3ab72689ebf5664b5e Mon Sep 17 00:00:00 2001
From: Bart Koelman <10324372+bkoelman@users.noreply.github.com>
Date: Wed, 23 Apr 2025 04:55:23 +0200
Subject: [PATCH 3/3] Update feed instructions in README
---
README.md | 25 +++++++++++--------------
1 file changed, 11 insertions(+), 14 deletions(-)
diff --git a/README.md b/README.md
index af29c1a68..fb58acf05 100644
--- a/README.md
+++ b/README.md
@@ -228,24 +228,21 @@ See also our [versioning policy](./VERSIONING_POLICY.md).
## Trying out the latest build
-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).
+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).
To try it out, follow the steps below:
-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.
-1. Add our package source to your local user-specific `nuget.config` file by running:
- ```bash
- 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
+1. Create a `nuget.config` file in the same directory as your .sln file, with the following contents:
+ ```xml
+
+
+
+
+
+
+
```
- In the command above:
- - Replace YOUR-GITHUB-USERNAME with the username you use to login your GitHub account.
- - Replace YOUR-PAT-CLASSIC with the token your created above.
- :warning: If the above command doesn't give you access in the next step, remove the package source by running:
- ```bash
- dotnet nuget remove source github-json-api
- ```
- and retry with the `--store-password-in-clear-text` switch added.
-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).
+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.
## Contributing