-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (41 loc) · 1.19 KB
/
deploy-pages.yaml
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
name: deploy-pages
on:
push:
# branches:
# - develop
# paths:
# - docs/**
# This job installs dependencies, builds the book, and pushes it to `gh-pages`
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Install dependencies
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
git clone https://github.com/rafmudaf/PyWake
pip install -e PyWake
git clone https://github.com/NREL/floris -b develop
pip install -e floris
pip install -e ".[docs]"
# Generate any required diagrams
- name: Make diagrams
working-directory: ${{runner.workspace}}/wcomp/wcomp
run: |
pyreverse base_interface.py -c WCompBase -o mmd
# Build the book
- name: Build the book
working-directory: ${{runner.workspace}}/wcomp/docs/
run: |
jupyter-book build .
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html