Skip to content

Commit

Permalink
Add github actions for auto documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sol committed Feb 5, 2024
1 parent 7d0bba6 commit 5f701cd
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# build and test some end points
name: Build and deploy docs for fmu-sumo

on:
pull_request:
branches: [main, read-the-docs]
push:
branches: [main, read-the-docs]

jobs:
build_pywheels:
name: Build docs with Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.10"]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v1

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install and build docs
run: |
pip install pip -U && pip install wheel -U
pip install .[docs]
sphinx-build docs build/sphinx/html

0 comments on commit 5f701cd

Please sign in to comment.