Skip to content

Test

Test #1

Workflow file for this run

name: documentation
on:
push:
branches:
- guides2
workflow_dispatch:
permissions:
contents: read
pages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: docs
submodules: false
- uses: actions/setup-python@v4
- name: Install dependencies
run: pip install -r docs/requirements.txt
- name: Sphinx build
run: sphinx-build docs _build
- name: Upload page artifact
uses: actions/upload-artifact@v4
with:
name: meca-docs-artifact
path: docs/_build/html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true