Skip to content

Merge pull request #427 from ml-struct-bio/v3.4.3 #153

Merge pull request #427 from ml-struct-bio/v3.4.3

Merge pull request #427 from ml-struct-bio/v3.4.3 #153

Workflow file for this run

name: Docs
on:
push:
branches: [ main ]
jobs:
build_docs:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install sphinx myst-parser sphinx-rtd-theme /home/runner/work/cryodrgn/cryodrgn/
- name: Setup Envvars
run: |
if [[ $GITHUB_REF = "refs/tags/"* ]];
then echo "CRYODRGN_VERSION=${GITHUB_REF/refs\/tags\//}";
else
echo "CRYODRGN_VERSION=";
fi >> $GITHUB_ENV
- name: Build docs
run: |
# Unless we add a .nojekyll to the base of the deployment folder, the underscores in foldernames
# like _static/ etc. pose problems on GH Pages.
cd docs && make html && touch _build/html/.nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/_build/html
branch: gh-pages