Skip to content

Commit

Permalink
Modified github action a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusSilvaUtrera committed May 24, 2024
1 parent 7e9a26a commit b03c8be
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/

0 comments on commit b03c8be

Please sign in to comment.