Skip to content

Commit

Permalink
documentation: update ci for new website setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Oct 4, 2023
1 parent a1e4d90 commit 798d2ff
Show file tree
Hide file tree
Showing 30 changed files with 5 additions and 1,387 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,14 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
# TODO: 3.x should be fine, but for now we enforce 3.10 to work around
# the "fatal error: longintrepr.h: No such file or directory" error
# triggered by revolve/cython in 3.11
python-version: '3.10'
- name: Install Sphinx
run: |
python -m pip install --upgrade pip
pip install sphinx sphinx_rtd_theme
pip install -e .
- name: Generate documentation
working-directory: docs
run: make html

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
personal_token: ${{ secrets.PERSONAL_TOKEN }}
publish_branch: gh-pages
publish_dir: ./docs/_build/html
token: ${{ secrets.PERSONAL_TOKEN }}
repository: devitocodes/devitoproject.org
event-type: deploy-docs
225 changes: 0 additions & 225 deletions docs/Makefile

This file was deleted.

Loading

0 comments on commit 798d2ff

Please sign in to comment.