Skip to content

Commit

Permalink
ci: add a new job in next.js workflow to build a redoc api documentat…
Browse files Browse the repository at this point in the history
…ion page
  • Loading branch information
m-benamor committed Sep 27, 2024
1 parent 0b62361 commit dc87994
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 17 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,24 +75,12 @@ jobs:
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out

build_redoc:
runs-on: ubuntu-latest
needs: build
name: Build redoc
steps:
- name: Checkout
uses: actions/checkout@v4
- name: build doc
run: npx @redocly/cli build-docs https://bitbucket.org/medicalinformatics/mainzelliste/raw/development/resources/Mainzelliste.OpenApi.Spec.yaml -o out/openapi/mainzelliste-api.html
run: npx @redocly/cli build-docs https://bitbucket.org/medicalinformatics/mainzelliste/raw/development/resources/Mainzelliste.OpenApi.Spec.yaml -o out/api-doc/index.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out/openapi
path: ./out

# Deployment job
deploy:
Expand Down
39 changes: 36 additions & 3 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dc87994

Please sign in to comment.