Skip to content

Disable auto build

Disable auto build #94

Workflow file for this run

# From: https://github.com/ammaraskar/sphinx-action-test/blob/master/.github/workflows/default.yml
# See also: https://github.com/marketplace/actions/sphinx-build
name: sphinx
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
- name: Commit documentation changes
run: |
git clone https://github.com/cakerobotics/crl.git --branch main --single-branch main
touch .nojekyll
mkdir -p docs/latest
cp -r docs/_build/html/* docs/latest
mv docs/latest/_static docs/latest/static
find docs/latest -type f -print0 | xargs -0 sed -i "s/_static/static/g"
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add docs/latest
git commit -m "Add documentation" -a || true
# The above command will fail if no changes were present, so we ignore
# that.
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: refs/heads/gh-pages
directory: docs/latest
force: true
github_token: ${{ secrets.GITHUB_TOKEN }}