Skip to content

Merge pull request #273 from CovertLab/uv_update #200

Merge pull request #273 from CovertLab/uv_update

Merge pull request #273 from CovertLab/uv_update #200

Workflow file for this run

name: Deploy Documentation
on:
push:
branches: [master]
jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
version: "0.5.21"
- name: Install Pandoc
run: sudo apt-get install pandoc
- name: Install model
run: USE_CYTHON=1 uv sync --frozen --extra docs
- name: Build documentation
run: |
cd doc
uv run make html
- name: Deploy documentation to GitHub pages
run: |
cd doc/_build/html
touch .nojekyll
git config --global init.defaultBranch master
git config --global user.name "CovertLab [bot]"
git config --global user.email "[email protected]"
git init
git add -A
git commit -m "Sphinx build from commit $GITHUB_SHA by GitHub Action"
git push -f "https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git" master:gh-pages