Skip to content

[pre-commit.ci] pre-commit autoupdate (#235) #233

[pre-commit.ci] pre-commit autoupdate (#235)

[pre-commit.ci] pre-commit autoupdate (#235) #233

Workflow file for this run

---
name: sphinx build
on:
push:
branches:
- main
paths-ignore:
- '**.md'
- '**.cff'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run sphinx
run: |
pip install -r ./docs/requirements.txt
sphinx-build -D todo_include_todos=0 ./docs/source ./docs/_build/html/
- name: Commit changes
run: |
git clone https://github.com/AI-SDC/ACRO.git --branch gh-pages --single-branch gh-pages
cp -r docs/_build/html/* gh-pages/
cd gh-pages
touch .nojekyll
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "Update documentation" -a || true
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: gh-pages
directory: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
...