Fix builds with v5 API

api-docs
Mark McDowall 3 weeks ago
parent b5c54575c2
commit f10b0e51b5
No known key found for this signature in database

@ -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

@ -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 &

@ -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

Loading…
Cancel
Save