Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@
"csharpier"
],
"rollForward": false
},
"Intility.DotnetApiDocs": {
"version": "0.1.5",
"commands": [
"dotnet-api-docs"
],
"rollForward": false
}
}
}
24 changes: 13 additions & 11 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Expand All @@ -30,9 +29,6 @@ jobs:
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5
with:
dotnet-version: 10.0.x
source-url: https://nuget.pkg.github.com/Intility/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Restore
run: dotnet restore --locked-mode
Expand All @@ -50,7 +46,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write # OIDC token for NuGet trusted publishing

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Expand All @@ -59,16 +55,22 @@ jobs:
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5
with:
dotnet-version: 10.0.x
source-url: https://nuget.pkg.github.com/Intility/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Restore
run: dotnet restore --locked-mode

- name: Build and Pack
run: dotnet pack JsonApiToolkit/JsonApiToolkit.csproj -c Release --no-restore

- name: Publish to GitHub Packages
run: dotnet nuget push "JsonApiToolkit/bin/Release/*.nupkg" --api-key ${{
secrets.GITHUB_TOKEN }}
# Exchange OIDC token for a short-lived NuGet API key
- name: NuGet login
id: login
uses: NuGet/login@8d196754b4036150537f80ac539e15c2f1028841 # v1.2.0
with:
user: ${{ secrets.NUGET_USER }}

- name: Publish to NuGet.org
run: dotnet nuget push "JsonApiToolkit/bin/Release/*.nupkg"
--source https://api.nuget.org/v3/index.json
--api-key ${{ steps.login.outputs.NUGET_API_KEY }}
--skip-duplicate
9 changes: 5 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,15 @@ jobs:
run: dotnet build JsonApiToolkit/JsonApiToolkit.csproj -c Release -o
JsonApiToolkit/bin/docs

- name: Restore .NET tools
- name: Install Intility.DotnetApiDocs
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: dotnet tool restore
run: dotnet tool install -g Intility.DotnetApiDocs
--version 0.1.5
--source https://nuget.pkg.github.com/Intility/index.json

- name: Generate API reference
run: dotnet tool run dotnet-api-docs -- --input JsonApiToolkit/bin/docs --output
docs/api --strict
run: dotnet-api-docs --input JsonApiToolkit/bin/docs --output docs/api --strict

- name: Install Python dependencies
run: uv venv && uv pip install -r docs/requirements.txt
Expand Down
5 changes: 3 additions & 2 deletions JsonApiToolkit/JsonApiToolkit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
<Version>2.1.0</Version>
<Authors>Intility</Authors>
<Company>Intility</Company>
<Description>A toolkit for implementing JSON:API specification in .NET applications</Description>
<PackageTags>jsonapi;api;rest;dotnet</PackageTags>
<Description>Build JSON:API endpoints in ASP.NET Core. Translates JSON:API query parameters (filter, sort, include, fields, page) into typed EF Core queries and returns spec-compliant response documents.</Description>
<PackageTags>jsonapi;json-api;aspnetcore;efcore;rest;api;dotnet</PackageTags>
<RepositoryUrl>https://github.com/intility/json-api-toolkit</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageProjectUrl>https://github.com/intility/json-api-toolkit</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>

Expand Down
Loading