Skip to content

Commit

Permalink
try again with actual docs
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaevers committed Jun 24, 2024
1 parent 81c7e02 commit 2df3604
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,30 @@ permissions:
pages: write

jobs:
# Single deploy job no building
deploy:
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
docs:
#environment:
# name: github-pages
# url: ${{steps.deployment.outputs.page_url}}
name: Docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload Artifact
uses: actions/upload-pages-artifact@v2
- name: Install Python
uses: actions/setup-python@v1
with:
# upload entire directory
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
python-version: 3.8
- name: Install requirements
run: |
pip3 install sphinx-rtd-theme
- name: Build docs
run: |
cd docs
make html
- name: Deploy
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html/

0 comments on commit 2df3604

Please sign in to comment.