Skip to content

ENH: Add optional geometry for Grid property #1698

ENH: Add optional geometry for Grid property

ENH: Add optional geometry for Grid property #1698

# build and test some end points
name: Build and deploy docs for fmu-dataio
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
build_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install and build docs
run: |
pip install pip -U && pip install wheel -U
pip install .[docs]
pip install xtgeo
pip install git+https://github.com/equinor/fmu-config
sh examples/run_examples.sh
sphinx-build -b html docs build/docs/html
- name: Update GitHub pages
if: github.repository_owner == 'equinor' && github.ref == 'refs/heads/main'
run: |
cp -R ./build/docs/html ../html
git config --local user.email "fmu-dataio-github-action"
git config --local user.name "fmu-dataio-github-action"
git fetch origin gh-pages
git checkout --track origin/gh-pages
git clean -f -f -d -x # Double -f is intentional.
git rm -r *
cp -R ../html/* .
touch .nojekyll # If not, github pages ignores _* directories.
git add .
echo "Ready for commit"
if git diff-index --quiet HEAD; then
echo "No changes in documentation. Skip documentation deploy."
else
git commit -m "Update Github Pages"
git push "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" gh-pages
fi