Skip to content

Build and Deploy Docsite #50

Build and Deploy Docsite

Build and Deploy Docsite #50

name: Build and Deploy Docsite
on:
workflow_dispatch: # Used to make post-release docfixes
push:
tags-ignore:
- 'frontend-*'
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Python deps 🔧
run: |
python -m pip install -U pip setuptools wheel
pip install -r ./client/python/cryoet_data_portal/scripts/requirements-dev.txt
pip install -r ./docs/requirements.txt
pip install -e ./client/python/cryoet_data_portal/
mkdir -p docsite
touch docsite/.nojekyll
- name: Install Pandoc
run: |
sudo apt-get install -y pandoc
- name: Build Sphinx website
run: |
cd docs/
make clean && make html
cp -r _build/html/* ../docsite/.
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docsite # The folder the action should deploy.
branch: gh-pages