From 403e730f005f86de1a01634153c0a7ffdb3a3412 Mon Sep 17 00:00:00 2001 From: teobucci Date: Tue, 27 Feb 2024 12:18:30 +0100 Subject: [PATCH] Update actions versions --- .github/workflows/documentation.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index 340359a..5507e34 100644 --- a/.github/workflows/documentation.yaml +++ b/.github/workflows/documentation.yaml @@ -1,4 +1,4 @@ -name: documentation +name: Build and deploy documentation on: push: @@ -14,21 +14,30 @@ permissions: jobs: docs: + name: Build and deploy documentation runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 + - name: Checkout source + uses: actions/checkout@v4.1.1 + + - name: Set up Python + uses: actions/setup-python@v5.0.0 + - name: Install Pandoc run: | sudo apt-get update sudo apt-get install -y pandoc + - name: Install dependencies run: | pip install ".[docs]" python -m ipykernel install --user --name python3 + - name: Sphinx build run: | sphinx-build docs/source docs/build + - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}