Skip to content

Commit

Permalink
chore: renamed docs workflow; added java, geospatial, and quarto rend…
Browse files Browse the repository at this point in the history
…er steps; removed sphinx steps
  • Loading branch information
ethan-moss committed May 17, 2024
1 parent 83aefc2 commit 347754a
Showing 1 changed file with 23 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@

name: "Render docs"

on: push
on:
push:
branches: [ "dev", "main" ]

env:
PYTHON_VERSION: "3.9"
PUSH_BRANCH: "refs/heads/dev"

jobs:
build:
name: Sphinx
name: Quarto Render
runs-on: ubuntu-22.04
permissions:
contents: write
Expand All @@ -25,14 +26,24 @@ jobs:
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Sphinx build # use -W to turn warnings into errors
- name: Install java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11.0.21'
- name: Check Java Install
run: |
java --version
- name: Install linux depencies with apt
run: |
make -C docs/ html SPHINXOPTS="-W"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
# deploy if it's being pushed only to this branch
if: ${{ github.ref == env.PUSH_BRANCH }}
sudo apt update
sudo apt install -y libgeos-dev
shell: sh
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
commit_message: ${{ github.event.head_commit.message }}
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 347754a

Please sign in to comment.