Skip to content

Create From_BayesFlow_1.0_to_2.0.ipynb #69

Create From_BayesFlow_1.0_to_2.0.ipynb

Create From_BayesFlow_1.0_to_2.0.ipynb #69

# From https://github.com/eeholmes/readthedoc-test/blob/main/.github/workflows/docs_pages.yml
name: multiversion-docs
on:
workflow_dispatch:
push:
branches:
- main
- stable-legacy
jobs:
build_docs:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v3
with:
path: repo
ref: main
fetch-depth: 0
fetch-tags: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: "pip"
- name: Install dependencies
run: |
cd ./repo
python -m pip install .[docs]
- name: Create local branches
run: |
cd ./repo
git branch stable-legacy remotes/origin/stable-legacy
- name: Make the Sphinx docs
run: |
cd ./repo/docsrc
make clean
make docs-sequential
- name: Checkout gh-pages-dev
uses: actions/checkout@v3
with:
path: gh-pages-dev
ref: gh-pages-dev
- name: Commit changes to docs
run: |
cd ./gh-pages-dev
git rm --quiet -rf .
cp -R ../repo/docs/* ./
git config --local user.email ""
git config --local user.name "github-actions"
git add -A
if ! git diff-index --quiet HEAD; then
git commit -m "auto: Rebuild docs."
git push
else
echo No commit made because the docs have not changed.
fi