generated from MolSSI-Education/jupyter-book
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.1 KB
/
deploy.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
name: Build and Deploy Book
on:
push:
branches:
- main
permissions: write-all
env:
PYTHON_VERSION: 3.12
JULIA_VERSION: 1.11
jobs:
build-and-deploy-book:
runs-on: ubuntu-latest
steps:
# Checkout repository
- uses: actions/checkout@v2
# Set up Python
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ env.PYTHON_VERSION }}
# Install Python dependencies
- name: Install Python dependencies
run: |
pip install -r requirements.txt
# Set up Julia
- name: Set up Julia
uses: julia-actions/setup-julia@v2
with:
version: ${{ env.JULIA_VERSION }}
# Install IJulia
- name: Install IJulia
run: |
julia -e 'using Pkg; Pkg.add("IJulia"); using IJulia'
# Build the book
- name: Build the book
run: |
jupyter-book build book --all
# Deploy to GitHub Pages
- name: Deploy Documentation
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: book/_build/html