Skip to content

Commit

Permalink
ci: build and deploy docusaurus
Browse files Browse the repository at this point in the history
  • Loading branch information
m-benamor committed Sep 27, 2024
1 parent df091bd commit db4ab67
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +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: build doc
- name: Build api doc with redoc
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: add favicon to redoc page
run: sed -i '7 i \ \ <link rel="icon" type="image/gif" href="../favicon.ico"/>' out/api-doc/index.html
- name: Build website
run: cd mainzelliste-doc && npm run build && mkdir ../out/docs && mv build ../out/docs
- name: Build documentation with Docusaurus
run: cd mainzelliste-doc && npm run build && mkdir ../out/docs && mv build/* ../out/docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
21 changes: 19 additions & 2 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 db4ab67

Please sign in to comment.