From f62e3e1687a5e0bb15bef3f6e909109275301470 Mon Sep 17 00:00:00 2001 From: Jashandeep Sohi Date: Mon, 3 Oct 2022 11:59:03 -0700 Subject: [PATCH] fix build docs action --- .github/workflows/docs-gh-pages.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs-gh-pages.yaml b/.github/workflows/docs-gh-pages.yaml index ef07af8..43797bb 100644 --- a/.github/workflows/docs-gh-pages.yaml +++ b/.github/workflows/docs-gh-pages.yaml @@ -17,12 +17,14 @@ jobs: fetch-depth: 0 - name: Install dependencies run: | - python -m pip install --upgrade pip + sudo apt-get -y update sudo apt-get install gdal-bin - pip install -r requirements.txt + python -m pip install --upgrade pip + pip install -r .poetry-version + pip install -r <(poetry export --with dev) - name: Build docs run: | - python manage.py generateschema --file science-archive.yaml --generator_class archive.schema.ScienceArchiveSchemaGenerator + poetry run python manage.py generateschema --file science-archive.yaml --generator_class archive.schema.ScienceArchiveSchemaGenerator npx redoc-cli bundle science-archive.yaml mkdir openapi; mv redoc-static.html openapi/science-archive.html - name: Deploy to GitHub Pages