Skip to content

Commit

Permalink
docs: Add github pages action
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianMichelsen committed Mar 29, 2022
1 parent c3fd119 commit d2a5b7f
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/docs_pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ jobs:
with:
python-version: 3.9

# - uses: abatilo/[email protected]

# install & configure poetry
- name: Install Poetry
uses: snok/install-poetry@v1 # v1.2.0
Expand All @@ -34,20 +32,19 @@ jobs:
installer-parallel: true

- name: install
run: poetry install --with docs
run: poetry install --only docs

- name: Build documentation
run: |
mkdir gh-pages
touch gh-pages/.nojekyll
cd docs/
poetry run make clean
poetry run make html
# poetry run sphinx-build -b html . _build
# cp -r _build/* ../gh-pages/
# - name: Deploy documentation
# if: ${{ github.event_name == 'push' }}
# uses: JamesIves/[email protected]
# with:
# branch: gh-pages
# folder: gh-pages
poetry run make clean && poetry run make html
cp -r build/* ../gh-pages/
- name: Deploy documentation
if: ${{ github.event_name == 'push' }}
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: gh-pages

0 comments on commit d2a5b7f

Please sign in to comment.