Skip to content

Clean up testing and README.md (#207) #13

Clean up testing and README.md (#207)

Clean up testing and README.md (#207) #13

name: Deploy Website
# Trigger the workflow on push events to the default branch (e.g., main)
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main
# Allows you to manually trigger the workflow
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout the repository to get the code
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Pandoc
run: sudo apt-get install pandoc
# Set up Python environment
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
# Install Python dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_dev.txt
pip install -r doc/requirements.txt
# Build the Sphinx documentation
- name: Build Sphinx documentation
run: |
cd doc
make html
# Deploy to GitHub Pages
- name: GitHub Pages Action
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/content/_build/html
publish_branch: gh-pages
cname: procrustes.qcdevs.org