Skip to content

[WIP] Trying building docs remotely #1

[WIP] Trying building docs remotely

[WIP] Trying building docs remotely #1

name: Build and Deploy Sphinx Docs to GitHub Pages
on:
push:
branches:
- main # replace with your default branch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.10' # replace x with your version
- name: Install Dependencies from requirements.txt
run: pip install -r requirements.txt
- name: Install Optional Dependencies from requirements_opt.txt
run: pip install -r requirements_opt.txt
- name: Install Dependencies from requirements_dev.txt
run: pip install -r requirements_dev.txt
- name: Build Sphinx Docs
run: make html # adjust based on your Makefile
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.LEGUARK_ACCESS_TOKEN }}
publish_dir: ./docs/build/html # replace with your generated HTML path