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 3357c78 commit f5d859d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Deploy Next.js site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["develop"]
branches: ["feature/docs"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -79,6 +79,8 @@ jobs:
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 && mv build /out/docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
6 changes: 4 additions & 2 deletions mainzelliste-doc/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ const config: Config = {

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'Verbis', // Usually your GitHub org/user name.
projectName: 'Mainzelliste', // Usually your repo name.
organizationName: 'medicalinformatics', // Usually your GitHub org/user name.
projectName: 'mainzelliste.de', // Usually your repo name.
deploymentBranch: 'deploymentBranch',
trailingSlash: false,

onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"postinstall": "cd mainzelliste-doc && npm ci"
},
"dependencies": {
"eslint": "^8.56.0",
Expand Down

0 comments on commit f5d859d

Please sign in to comment.