diff --git a/.github/workflows/api_docs.yml b/.github/workflows/api_docs.yml index 962ab1f7a..cd142f7e3 100644 --- a/.github/workflows/api_docs.yml +++ b/.github/workflows/api_docs.yml @@ -33,7 +33,7 @@ jobs: id: setup-dotnet - name: Create openapi.json - run: ./docs.sh Linux + run: ./docs.sh Linux x64 - name: Commit API Docs Change continue-on-error: true diff --git a/docs.sh b/docs.sh index 47846fe99..d93e5f889 100755 --- a/docs.sh +++ b/docs.sh @@ -3,7 +3,7 @@ set -e FRAMEWORK="net8.0" PLATFORM=$1 -ARCHITECTURE="${2:-'default value'}" +ARCHITECTURE="${2:-x64}" if [ "$PLATFORM" = "Windows" ]; then RUNTIME="win-$ARCHITECTURE" @@ -37,7 +37,7 @@ dotnet clean $slnFile -c Release dotnet msbuild -restore $slnFile -p:Configuration=Debug -p:Platform=$platform -p:RuntimeIdentifiers=$RUNTIME -t:PublishAllRids -# dotnet new tool-manifests +dotnet new tool-manifest dotnet tool install --version 6.6.2 Swashbuckle.AspNetCore.Cli dotnet tool run swagger tofile --output ./src/Sonarr.Api.V5/openapi.json "$outputFolder/$FRAMEWORK/$RUNTIME/$application" v5 & diff --git a/src/Sonarr.sln b/src/Sonarr.sln index f3a657fcf..8a7f184da 100644 --- a/src/Sonarr.sln +++ b/src/Sonarr.sln @@ -293,6 +293,12 @@ Global {4AE3B731-442E-4AF0-88A5-9FABEB685A0D}.Release|Windows.Build.0 = Release|Any CPU {1A9DFC67-3712-47A5-8DCA-0BCAA95F9EDC}.Debug|Posix.ActiveCfg = Debug|Any CPU {1A9DFC67-3712-47A5-8DCA-0BCAA95F9EDC}.Debug|Posix.Build.0 = Debug|Any CPU + {1A9DFC67-3712-47A5-8DCA-0BCAA95F9EDC}.Debug|Windows.ActiveCfg = Debug|Any CPU + {1A9DFC67-3712-47A5-8DCA-0BCAA95F9EDC}.Debug|Windows.Build.0 = Debug|Any CPU + {1A9DFC67-3712-47A5-8DCA-0BCAA95F9EDC}.Release|Posix.ActiveCfg = Release|Any CPU + {1A9DFC67-3712-47A5-8DCA-0BCAA95F9EDC}.Release|Posix.Build.0 = Release|Any CPU + {1A9DFC67-3712-47A5-8DCA-0BCAA95F9EDC}.Release|Windows.ActiveCfg = Release|Any CPU + {1A9DFC67-3712-47A5-8DCA-0BCAA95F9EDC}.Release|Windows.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE