Skip to content

Commit

Permalink
use actions-gh-pages for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-th committed Jan 13, 2024
1 parent f2438f9 commit facd211
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ jobs:
run: |
cd docs/
make html
- name: Run ghp-import
run: |
ghp-import -n -p -f docs/_build/html
- name: Sphinx build
run: |
sphinx-build doc _build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true
3 changes: 1 addition & 2 deletions requirements_docs.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
sphinx
myst-parser
sphinx_rtd_theme
ghp-import
sphinx_rtd_theme

0 comments on commit facd211

Please sign in to comment.