Skip to content

Update doc building requirements #2

Update doc building requirements

Update doc building requirements #2

Workflow file for this run

name: Build docs
on: push
jobs:
build:
name: Build Docs
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Build docs
uses: actions/setup-python@master
with:
python-version: "3.12"
- run: |
make install
cd docs
make install-deps
make build
tar -C build/html/ --dereference --hard-dereference -cvzf $RUNNER_TEMP/github-pages.tar.gz .
- name: Upload static files as artifact
# We only execute this step if the commit is tagged, i.e., this is a release
#if: startsWith(github.ref, 'refs/tags')
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: ${{ runner.temp }}/github-pages.tar.gz
deploy:
name: Deploy docs
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
# We only execute this step if the commit is tagged, i.e., this is a release
#if: startsWith(github.ref, 'refs/tags')
id: deployment
uses: actions/deploy-pages@v4