-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e9a26a
commit b03c8be
Showing
1 changed file
with
8 additions
and
24 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,31 +56,15 @@ jobs: | |
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U sphinx | ||
python -m pip install sphinx-rtd-theme | ||
# python -m pip install sphinxcontrib-apidoc | ||
python -m pip install sphinx-autoapi | ||
pip install -r docs/requirements.txt | ||
- name: make the sphinx docs | ||
- name: Build documentation | ||
run: | | ||
make -C docs clean | ||
# sphinx-apidoc -f -o docs/source . -H Test -e -t docs/source/_templates | ||
make -C docs html | ||
cd docs | ||
make html | ||
- name: Init new repo in dist folder and commit generated files | ||
- name: Trigger Read the Docs build | ||
env: | ||
READTHEDOCS_TOKEN: ${{ secrets.READTHEDOCS_TOKEN }} | ||
run: | | ||
cd docs/build/html/ | ||
git init | ||
touch .nojekyll | ||
git add -A | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git commit -m 'deploy' | ||
- name: Force push to destination branch | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: rtd-pages | ||
force: true | ||
directory: ./docs/build/html | ||
curl -X POST -d "branches=main" -H "Authorization: token $READTHEDOCS_TOKEN" https://readthedocs.org/api/v3/projects/andino-docs/versions/main/builds/ |