Skip to content

Commit

Permalink
[feat]: updated docs deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Vl-Tershch committed Jun 2, 2024
1 parent 772b485 commit 36a9a0c
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,26 @@ jobs:
run: |
python -m pip install -U sphinx
python -m pip install sphinx-rtd-theme
python -m pip install sphinx-autoapi
- name: make the sphinx docs
run: |
make -C docs clean
# sphinx-apidoc -f -o docs/source . -H Test -e -t docs/source/_templates
make -C docs clean
make -C docs html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
- name: Init new repo in dist folder and commit generated files
run: |
cd docs/build/html/
git init
touch .nojekyll
git add -A
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m 'deploy'
- name: Force push to destination branch
uses: ad-m/github-push-action@v0.5.0
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
directory: ./docs/build/html
force_orphan: true
branch: development
force: true
directory: ./docs/build/html

0 comments on commit 36a9a0c

Please sign in to comment.