Skip to content

Commit

Permalink
V2.0.0 docs (#10)
Browse files Browse the repository at this point in the history
Fix Sphinx build action.
  • Loading branch information
mjziebarth authored Jan 3, 2024
1 parent 8f6d28f commit 4728746
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:


jobs:
build-and-deploy:
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand All @@ -37,7 +37,7 @@ jobs:
libcgal-dev libgeographic-dev build-essential\
git openssh-client ssh cython3 \
python3-sphinx ninja-build cmake-data \
cmake-extras extra-cmake-modules
cmake-extras extra-cmake-modules liblapacke-dev
python3 -m pip install --user numpy
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
Expand All @@ -53,15 +53,30 @@ jobs:
make html
cd ..
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: html-docs
path: docs/_build/html/
- name: Upload Website
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
# Upload website:
path: 'docs/_build/html'

deploy:
needs: build

permissions:
actions: read
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@main
uses: actions/deploy-pages@v4.0.1

0 comments on commit 4728746

Please sign in to comment.