Update readthedocs.yml #4
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 and Deploy Docs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install sphinx | |
pip install -r ./docs/requirements.txt | |
- name: Build documentation | |
run: | | |
cd docs && make html | |
- name: Trigger Read the Docs build | |
run: | | |
curl -X POST \ | |
-H "Authorization: Token ${{ secrets.READTHEDOCS_TOKEN }}" \ | |
https://readthedocs.org/api/v2/webhook/jito-docs/276813/ | |
env: | |
READTHEDOCS_TOKEN: ${{ secrets.READTHEDOCS_TOKEN }} | |