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 5ee7ed6 commit 0b62361
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 42 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,27 @@ jobs:
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
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out/openapi

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
needs: build_redoc
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/redoc.yml

This file was deleted.

15 changes: 11 additions & 4 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 0b62361

Please sign in to comment.