Skip to content

update workflow to install Julia #8

update workflow to install Julia

update workflow to install Julia #8

Workflow file for this run

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