From 5c6e314d76f10c8bf00adf5aa57536a9533049a5 Mon Sep 17 00:00:00 2001 From: Kim Dong Hyun <98632435+DDonghyeo@users.noreply.github.com> Date: Thu, 9 May 2024 18:45:06 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs=20:=20API=20=EB=AC=B8?= =?UTF-8?q?=EC=84=9C=20=ED=86=B5=ED=95=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/apidocs.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/apidocs.yml b/.github/workflows/apidocs.yml index e8d6d8e7..7548ff29 100644 --- a/.github/workflows/apidocs.yml +++ b/.github/workflows/apidocs.yml @@ -34,9 +34,8 @@ jobs: - name: get doc run: | cd ./noti-service - cat ./build.gradle ls -all - ./noti-service/gradlew :noti-service:clean :noti-service:generateOpenApiDocs + ./gradlew :clean :generateOpenApiDocs #redoc Set up - name: redocly-cli @@ -46,7 +45,7 @@ jobs: - name: generate document html run: | - cp noti-service/build/docs/noti.json ./ + cp ./build/docs/noti.json ./ redocly bundle noti.json --output noti.yaml --ext yaml yq -i '.info.title = "Noti-Service API Document"' noti.yaml yq -i '.info.description = "Please contact Petstore backend if there are any issues with API"' noti.yaml @@ -54,8 +53,9 @@ jobs: - name: save build result to tmp dir run: | - mkdir -p ../docs - mv noti.html ../docs + cd .. + mkdir -p docs + mv ./noti-service/noti.html docs - name: Checkout document branch uses: actions/checkout@v3