diff --git a/.github/workflows/apidocs.yml b/.github/workflows/apidocs.yml index 746be86f..5d956f4c 100644 --- a/.github/workflows/apidocs.yml +++ b/.github/workflows/apidocs.yml @@ -43,20 +43,29 @@ jobs: # ls -all # ./gradlew :clean :generateOpenApiDocs - #redoc Set up - - name: redocly-cli - # You may pin to the exact commit or the version. - # uses: DeltaLaboratory/redocly-cli-action@34bfb03df7e3412b75b1f4086c3fd46e82fa5e33 - uses: DeltaLaboratory/redocly-cli-action@v1.0.0 - + # Copy json - name: generate document html run: | cd ./noti-service cp ./build/docs/noti.json ./ - redocly bundle noti.json --output noti.yaml --ext yaml + + #redoc CLI : bundle json + - name: redoc-cli-github-action + uses: seeebiii/redoc-cli-github-action@v9 + with: + args: 'bundle noti.json --output noti.yaml --ext yaml' + + #yaml naming + - name: generate document html + run: | 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 - redocly build-docs noti.yaml --output noti.html + + #redoc CLI : build docs + - name: redoc-cli-github-action + uses: seeebiii/redoc-cli-github-action@v9 + with: + args: 'build-docs noti.yaml --output noti.html' - name: save build result to tmp dir run: |