-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (41 loc) · 1.33 KB
/
documentation.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
name: Documentation
on:
push:
branches:
- master
tags: '*'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: '1.10'
- uses: julia-actions/cache@v2
- name: Install dependencies
run: |
# Version 3.9.0 of matplotlib causes an error with PyPlot.jl, so pin
# matplotlib version to 3.8.3 until this is fixed. See
# https://github.com/JuliaPy/PyPlot.jl/issues/582).
pip3 install --user "matplotlib==3.8.3"
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Authenticate with GitHub Actions token
run: julia --project=docs/ docs/make.jl
build-pdf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: '1.10'
- name: Install dependencies
run: |
# Version 3.9.0 of matplotlib causes an error with PyPlot.jl, so pin
# matplotlib version to 3.8.3 until this is fixed. See
# https://github.com/JuliaPy/PyPlot.jl/issues/582).
pip3 install --user "matplotlib==3.8.3"
- name: Build and deploy
run: julia --project=docs/ docs/make-pdf.jl