Skip to content

Commit

Permalink
๐Ÿ“ docs : API ๋ฌธ์„œ ํ†ตํ•ฉ
Browse files Browse the repository at this point in the history
  • Loading branch information
DDonghyeo authored May 9, 2024
1 parent f7362d3 commit 5c6e314
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/apidocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -46,16 +45,17 @@ 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
redocly build-docs noti.yaml --output noti.html
- 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
Expand Down

0 comments on commit 5c6e314

Please sign in to comment.