From dc8799442448c45bcb22e03d10af5008e293dbf1 Mon Sep 17 00:00:00 2001 From: Moanes Ben Amor Date: Fri, 27 Sep 2024 10:02:12 +0200 Subject: [PATCH] ci: add a new job in next.js workflow to build a redoc api documentation page --- .github/workflows/nextjs.yml | 16 ++------------- .idea/workspace.xml | 39 +++++++++++++++++++++++++++++++++--- 2 files changed, 38 insertions(+), 17 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 399b534..2c0418b 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -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: diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ed941b5..d44007e 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -74,7 +74,7 @@ - + -