Skip to content

[pre-commit.ci] pre-commit autoupdate (#242) #240

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

[pre-commit.ci] pre-commit autoupdate (#242) #240

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 "action@github.com"
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 }}
...