From 28b15f2569cff58db48fb97048b3de64cf933d31 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 21 Nov 2021 05:16:21 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Manually=20run=20sphinx=20make?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-sphinx-report.yml | 14 +++++--------- .github/workflows/build-sphinx-thesis.yml | 14 +++++--------- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build-sphinx-report.yml b/.github/workflows/build-sphinx-report.yml index e2663ab..b7258f6 100644 --- a/.github/workflows/build-sphinx-report.yml +++ b/.github/workflows/build-sphinx-report.yml @@ -23,15 +23,13 @@ jobs: poetry-version: 1.1.11 - name: "Install backend dependencies" working-directory: backend/ - run: "poetry install --no-interaction" + run: poetry install --no-interaction - name: "Find Poetry Python environment" working-directory: backend/ run: echo "pythonLocation=$(poetry env list --full-path | cut -f1 -d' ')/bin" >> $GITHUB_ENV - name: "Build HTML document with Sphinx" - uses: ammaraskar/sphinx-action@master - with: - docs-folder: "report/" - build-command: "make html" + working-directory: report/ + run: make html - name: "Create a gzip of the build" run: "tar -xvzf report/_build/report.html.tar.gz report/_build/html" - name: "Upload build artifact" @@ -62,10 +60,8 @@ jobs: - name: "Install Latex dependencies" run: apt-get update -y && apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended - name: "Build Latex document with Sphinx" - uses: ammaraskar/sphinx-action@master - with: - docs-folder: "report/" - build-command: "make latexpdf" + working-directory: report/ + run: make latexpdf - name: "Upload build artifact" uses: actions/upload-artifact@v2 with: diff --git a/.github/workflows/build-sphinx-thesis.yml b/.github/workflows/build-sphinx-thesis.yml index 0a133f5..ddfb785 100644 --- a/.github/workflows/build-sphinx-thesis.yml +++ b/.github/workflows/build-sphinx-thesis.yml @@ -23,15 +23,13 @@ jobs: poetry-version: 1.1.11 - name: "Install backend dependencies" working-directory: backend/ - run: "poetry install --no-interaction" + run: poetry install --no-interaction - name: "Find Poetry Python environment" working-directory: backend/ run: echo "pythonLocation=$(poetry env list --full-path | cut -f1 -d' ')/bin" >> $GITHUB_ENV - name: "Build HTML document with Sphinx" - uses: ammaraskar/sphinx-action@master - with: - docs-folder: "thesis/" - build-command: "make html" + working-directory: thesis/ + run: make html - name: "Create a gzip of the build" run: "tar -xvzf thesis/_build/thesis.html.tar.gz thesis/_build/html" - name: "Upload build artifact" @@ -62,10 +60,8 @@ jobs: - name: "Install Latex dependencies" run: apt-get update -y && apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended - name: "Build Latex document with Sphinx" - uses: ammaraskar/sphinx-action@master - with: - docs-folder: "thesis/" - build-command: "make latexpdf" + working-directory: thesis/ + run: make latexpdf - name: "Upload build artifact" uses: actions/upload-artifact@v2 with: