mirror of
https://github.com/Sonarr/Sonarr
synced 2026-04-19 03:32:03 +02:00
Fix builds with v5 API
This commit is contained in:
parent
a72bc164a9
commit
2fd1fea4cb
3 changed files with 9 additions and 3 deletions
2
.github/workflows/api_docs.yml
vendored
2
.github/workflows/api_docs.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
4
docs.sh
4
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 &
|
||||
|
|
|
|||
|
|
@ -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…
Reference in a new issue