From 35c32844f8da29241a1c6f222d57f7526b3f32b0 Mon Sep 17 00:00:00 2001 From: Slava <20563034+veaceslavdoina@users.noreply.github.com> Date: Mon, 28 Oct 2024 15:53:41 +0200 Subject: [PATCH] Build Postman Collection (#973) Signed-off-by: Slava <20563034+veaceslavdoina@users.noreply.github.com> --- .github/workflows/docs.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 6ec42ebe..50b14d05 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -28,14 +28,13 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - fetch-depth: '0' + fetch-depth: 0 - uses: actions/setup-node@v4 with: node-version: 18 - name: Lint OpenAPI - shell: bash run: npx @redocly/cli lint openapi.yaml deploy: @@ -46,20 +45,22 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - fetch-depth: '0' + fetch-depth: 0 - uses: actions/setup-node@v4 with: node-version: 18 - name: Build OpenAPI - shell: bash - run: npx @redocly/cli build-docs openapi.yaml --output "openapi/index.html" --title "Codex API" + run: npx @redocly/cli build-docs openapi.yaml --output openapi/index.html --title "Codex API" + + - name: Build Postman Collection + run: npx -y openapi-to-postmanv2 -s openapi.yaml -o openapi/postman.json -p -O folderStrategy=Tags,includeAuthInfoInExample=false - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: './openapi' + path: openapi - name: Deploy to GitHub Pages uses: actions/deploy-pages@v4