From 5ee7ed6f7ceb40d12f732b0d902770f02d39cf96 Mon Sep 17 00:00:00 2001 From: Moanes Ben Amor Date: Thu, 26 Sep 2024 23:37:03 +0200 Subject: [PATCH] ci: build a redoc api description page --- .github/workflows/redoc.yml | 37 ++++++++++ .idea/workspace.xml | 134 ++++++++++++++++++++++++++---------- 2 files changed, 136 insertions(+), 35 deletions(-) create mode 100644 .github/workflows/redoc.yml diff --git a/.github/workflows/redoc.yml b/.github/workflows/redoc.yml new file mode 100644 index 0000000..c55e801 --- /dev/null +++ b/.github/workflows/redoc.yml @@ -0,0 +1,37 @@ +name: test-deploy + +# Run on each push to master +on: + push: + branches: [ "develop" ] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +jobs: + build_redoc: + runs-on: ubuntu-latest + 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 openapi/mainzelliste-api.html + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./openapi + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build_redoc + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.idea/workspace.xml b/.idea/workspace.xml index c6b8470..42a6b7e 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,20 +5,8 @@ - - - - - - - - - - - - - - + + - { - "keyToString": { - "RunOnceActivity.OpenProjectViewOnStart": "true", - "RunOnceActivity.ShowReadmeOnStart": "true", - "SONARLINT_PRECOMMIT_ANALYSIS": "true", - "WebServerToolWindowFactoryState": "false", - "last_opened_file_path": "C:/experiment/project/mainzelliste.site", - "node.js.detected.package.eslint": "true", - "node.js.detected.package.tslint": "true", - "node.js.selected.package.eslint": "(autodetect)", - "node.js.selected.package.tslint": "(autodetect)", - "nodejs_package_manager_path": "npm", - "project.structure.last.edited": "Modules", - "project.structure.proportion": "0.0", - "project.structure.side.proportion": "0.2", - "ts.external.directory.path": "C:\\experiment\\project\\mainzelliste.site\\node_modules\\typescript\\lib", - "vue.rearranger.settings.migration": "true" + +}]]> @@ -86,7 +74,8 @@ 1727080149339 - + + - @@ -142,6 +203,9 @@ - \ No newline at end of file