This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
67 lines (56 loc) · 1.75 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Documentation
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build_docs_job:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
defaults:
run:
# https://github.com/conda-incubator/setup-miniconda/tree/v2#use-a-default-shell
shell: bash -l {0}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Miniconda with Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
miniconda-version: "latest"
python-version: ${{ matrix.python-version }}
activate-environment: test_env
- name: Install other dependencies
run: |
sudo apt-get install -y yarn
conda install -c conda-forge -y boost-cpp eigen range-v3
python -m pip install --upgrade pip
python -m pip install setuptools
python -m pip install notebook
- name: Install Bean Machine in editable mode
run: pip install -v -e .[dev]
- name: Add tutorials to Docs
run: make tutorials
- name: Check env
run: echo `which sphinx-build`
- name: Build the Website
run: |
cd website
yarn install
make all
cd ..
- name: Get output time
run: echo "The time was ${{ steps.build.outputs.time }}"
- name: Deploy
if: |
github.event_name == 'push' &&
github.repository == 'facebookresearch/beanmachine'
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: website/build # The folder the action should deploy.