From b76ce14ec4b26398cf763a39a2b33a7624e18f07 Mon Sep 17 00:00:00 2001 From: ekwaly <96921826+ekwaly@users.noreply.github.com> Date: Thu, 11 Jul 2024 12:43:41 +0200 Subject: [PATCH] Update documentation.yml --- .github/workflows/documentation.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 3e5d6d0..9451b70 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -4,7 +4,7 @@ name: Deploy Sphinx documentation to Pages on: # Runs on pushes targeting the default branch push: - branches: [$default-branch] + branches: main # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -28,13 +28,21 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest - container: ghcr.io/sphinx-doc/sphinx steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + check-latest: true + cache: 'pip' + cache-dependency-path: './docs/requirements.txt' + - name: Install dependencies + run: | + pip install -r ./docs/requirements.txt - name: Build documentation run: | - pip install -r requirements.txt sphinx-build -M html ./docs/source _build/ - name: Setup Pages uses: actions/configure-pages@v5