Skip to content

Merge pull request #98 from zyhu-hu/zeyuanhu/online_testing_tomerge #195

Merge pull request #98 from zyhu-hu/zeyuanhu/online_testing_tomerge

Merge pull request #98 from zyhu-hu/zeyuanhu/online_testing_tomerge #195

name: publish-website
on:
# Trigger the workflow on push to main branch
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
build:
uses: ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml@main
with:
environment_file: 'website/environment.yml'
environment_name: climsim-docs-env
path_to_notebooks: 'website'
build_command: 'cp -r ../README.md ../ARCHITECTURE.md ../figures ../demo_notebooks ../evaluation .; jupyter-book build .'
# this is a bit hacky, but the only way to 'inject' a shell command before the build.
output_path: '_build/html'
deploy:
needs: build
uses: ProjectPythia/cookbook-actions/.github/workflows/deploy-book.yaml@main
with:
publish_dir: "website/_build/html"