-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|