-
-
Notifications
You must be signed in to change notification settings - Fork 143
41 lines (37 loc) · 1.1 KB
/
deploy_docs.yml
File metadata and controls
41 lines (37 loc) · 1.1 KB
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
name: Build and Deploy Jupyter Book documentation
on:
push:
branches:
- master
paths:
- './docs/**.png'
- './docs/book/content/theory/images/**.png'
- './docs/book/**.yml'
- './docs/book/**.bib'
- '**.md'
- './docs/book/content/api/**.rst'
- './ogcore/**.py'
jobs:
build-and-deploy:
if: github.repository == 'PSLmodels/OG-Core'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.13"
- name: Install package and dependencies
run: uv sync --extra dev --extra docs
- name: Build # Build Jupyter Book
run: |
uv run make documentation
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/book/_build/html # The folder the action should deploy.