From 3a832abeeafeffc1cb8d79045ba0d42b790773d9 Mon Sep 17 00:00:00 2001 From: Patrick Magee Date: Thu, 14 Sep 2023 10:55:25 -0400 Subject: [PATCH] [#197] Fix docs build action --- .github/workflows/build.yml | 39 +++++++++++++------------------------ .spec-docs.json | 14 ++----------- 2 files changed, 16 insertions(+), 37 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index df113a72..1656a60d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,34 +1,23 @@ -name: docs-build-publish +name: Build OpenAPI docs on: - push: - branches: - - master - - develop - - "feature/issue-*" - - "fix/issue-*" - - "support/issue-*" - pull_request_target: - branches: - - master - - develop - - "feature/issue-*" - - "fix/issue-*" - - "support/issue-*" -permissions: - contents: write + - push + # - pull_request jobs: docs-build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Docker Pull 🐳 - run: | - docker pull ga4gh/gh-openapi-docs:0.2.3-rc1 - - name: Build Docs 🔧 - run: | - docker run --name docs-builder --rm -v `pwd`:/docs ga4gh/gh-openapi-docs:0.2.3-rc1 + - name: Setup Node.js environment + uses: actions/setup-node@v2.5.1 + with: + node-version: 14.x + # Comes with npm 6. For newer Node, encountered: https://github.com/npm/cli/issues/3359 + - run: npm install -g @redocly/openapi-cli && npm install -g redoc-cli + - run: npm install -g gh-openapi-docs + - name: Check out repository code + uses: actions/checkout@v2 + - run: gh-openapi-docs - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4.2.2 with: branch: gh-pages - folder: publish + folder: . \ No newline at end of file diff --git a/.spec-docs.json b/.spec-docs.json index 43bf5b1b..7f1f6d99 100644 --- a/.spec-docs.json +++ b/.spec-docs.json @@ -1,14 +1,4 @@ { - "docsRoot": "docs", - "defaultBranch": "master", - "branchPathBase": "preview", - "redocTheme": "ga4gh", - "buildPages": [ - { - "apiSpecPath": "openapi/workflow_execution_service.openapi.yaml", - "htmlOutfile": "index.html", - "yamlOutfile": "openapi.yaml", - "jsonOutfile": "openapi.json" - } - ] + "apiSpecPath": "openapi/workflow_execution_service.openapi.yaml", + "redocTheme": "ga4gh" }