From 571491541586b9c0acedcfe9905ee5ebeb54fbeb Mon Sep 17 00:00:00 2001 From: "Kieran B. Spooner" Date: Mon, 18 Mar 2024 13:03:38 +0000 Subject: [PATCH] add autodeployment of docs --- .github/workflows/docs.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 586fa21..505a872 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -5,8 +5,6 @@ name: docs on: push: branches: [ "master" ] - pull_request: - branches: [ "master" ] permissions: contents: read @@ -25,8 +23,12 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install sphinx sphinx_rtd_theme - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + pip install -e '.[docs]' - name: Build docs with sphinx run: | cd docs; sphinx-build -b html src/ . + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: docs/src/ \ No newline at end of file