Skip to content

Commit

Permalink
Update apidocs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DDonghyeo authored May 9, 2024
1 parent 4e9b0bd commit 98c8e40
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/apidocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

# 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: |
Expand Down

0 comments on commit 98c8e40

Please sign in to comment.