Skip to content

Adds authors, update doc reqs #17

Adds authors, update doc reqs

Adds authors, update doc reqs #17

Workflow file for this run

name: Build documentation
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: "pip"
cache-dependency-path: |
requirements.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -r ./doc/requirements_doc.txt
python -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
- name: Install package
run: |
python -m pip install -e .
- name: Make doc
run: |
CWD=`pwd`
cd doc
make html
cd ..
echo ${CWD}
- name: Push docs
run: |
# See https://github.community/t/github-actions-bot-email-address/17204/5
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions"
git fetch origin gh-pages
git checkout gh-pages
git rm -r dev/*
mkdir -p dev
echo ${CWD}
echo $(ls)
cp -r doc/build/html/* dev
git add dev
# If the doc is up to date, the script shouldn't fail, hence --allow-empty
# Might be a cleaner way to check
git commit --allow-empty -m "Deployed to GitHub Pages"
git push --force origin gh-pages