|
|
@ -57,12 +57,12 @@ steps:
|
|
|
|
- dotnet restore webAPI.sln
|
|
|
|
- dotnet restore webAPI.sln
|
|
|
|
- cd API
|
|
|
|
- cd API
|
|
|
|
- dotnet new tool-manifest
|
|
|
|
- dotnet new tool-manifest
|
|
|
|
- dotnet tool install -g --version 6.5.0 Swashbuckle.AspNetCore.Cli
|
|
|
|
- dotnet tool install -g --version 14.0.7 NSwag.AspNetCore
|
|
|
|
- cd ../
|
|
|
|
- cd ../
|
|
|
|
- dotnet build webAPI.sln -c Release --no-restore
|
|
|
|
- dotnet build webAPI.sln -c Release --no-restore
|
|
|
|
- dotnet publish webAPI.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release
|
|
|
|
- dotnet publish webAPI.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release
|
|
|
|
- export PATH="$PATH:/root/.dotnet/tools"
|
|
|
|
- export PATH="$PATH:/root/.dotnet/tools"
|
|
|
|
- swagger tofile --output /docs/swagger.json API/bin/Release/net8.0/API.dll v1
|
|
|
|
- dotnet nswag aspnetcore2swagger /assembly:API/bin/Release/net8.0/API.dll /output:/docs/swagger.json
|
|
|
|
depends_on: [build,tests]
|
|
|
|
depends_on: [build,tests]
|
|
|
|
|
|
|
|
|
|
|
|
- name: generate-and-deploy-docs
|
|
|
|
- name: generate-and-deploy-docs
|
|
|
|