diff --git a/.github/workflows/apiDocs.yml b/.github/workflows/apiDocs.yml index 0346c02d..02fcd6b7 100644 --- a/.github/workflows/apiDocs.yml +++ b/.github/workflows/apiDocs.yml @@ -7,7 +7,7 @@ on: - develop jobs: - document: + api-docs-integration: runs-on: ubuntu-latest steps: @@ -29,14 +29,13 @@ jobs: # run : | # redocly join ./noti.json ./user.json ./weather.json -o ./api.json - # Redoc : json 파일 join - - name: redoc-cli-github-action - uses: seeebiii/redoc-cli-github-action@v9 - with: - args: 'join ./noti.json ./user.json ./weather.json -o ./api.json' + # # Redoc : json 파일 join + # - name: redoc-cli-github-action + # uses: seeebiii/redoc-cli-github-action@v9 + # with: + # args: 'join ./noti.json ./user.json ./weather.json -o ./api.json' - - name: Change File Ownership - run: sudo chown --recursive --preserve-root --verbose runner:docker ./api.json + # - name : ls # run : | @@ -46,9 +45,14 @@ jobs: # Redoc : json 파일 join - name: redoc-cli-github-action - uses: seeebiii/redoc-cli-github-action@v9 + uses: seeebiii/redoc-cli-github-action@v10 with: - args: 'bundle ./user.json ./noti.json ./weather.json --output ./index.html --ext html' + args: 'bundle ./user.json ./noti.json ./weather.json --output ./api.yaml --ext yaml' + + - name: check result + run: | + ls -al + test -f api.yaml || (echo "Missing api.yaml from previous step." && exit 1) # - name: Rename Yaml Title & Desc # run: | @@ -56,11 +60,17 @@ jobs: # yq -i '.info.title = "Waither Backend API Document for FrontEnd"' ./api.yaml # yq -i '.info.description = "Please contact Petstore backend if there are any issues with API"' ./api.yaml - # - name: redoc-cli-github-action - # uses: seeebiii/redoc-cli-github-action@v9 - # with: - # args: 'build-docs ./api.yaml --output ./index.html' + - name: redoc-cli-github-action + uses: seeebiii/redoc-cli-github-action@v10 + with: + args: 'build-docs ./api.yaml --output ./index.html' + + - name: check result + run: | + ls -al + test -f index.html || (echo "Missing index.html from previous step." && exit 1) + # 웹페이지 Repository에 Push 합니다. - name: Install SSH Key uses: leigholiver/commit-with-deploy-key@v1.0.4