Merge pull request #2 from sychouwk/patch-2 #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Documentation | |
on: | |
push: | |
branches: | |
- main # Replace with your default branch | |
pull_request: | |
branches: | |
- main # Replace with your default branch | |
jobs: | |
build-: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' # Specify the Python version used by RTD | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt # Install Sphinx and other dependencies | |
- name: Build documentation | |
run: | | |
make html # Build the HTML documentation | |
# - name: Trigger Read the Docs build | |
# run: | | |
# curl -X POST -d "" https://readthe.org/api/v2/projects/ameba-arduino-pro2-doc/versions/latest/build/ \ | |
# -H "Authorization: token ${{ secrets.RTD_API_TOKEN }}" |