-
Notifications
You must be signed in to change notification settings - Fork 5
56 lines (53 loc) · 1.85 KB
/
docs.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
53
54
55
56
name: docs
on:
push:
branches:
- main
- fergus/docs
concurrency:
# cancels when a PR gets updated
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }}
cancel-in-progress: true
jobs:
docs:
name: Build and publish
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: '1.11'
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- name: Setup data directories
run: |
wget "https://www.star.bristol.ac.uk/fergus/spectral-fitting/ci-data/1E-1048-5937.tar"
mkdir ex-datadir
tar -xf 1E-1048-5937.tar -C ex-datadir/
- name: Build documentation
run: |
julia -e 'import Pkg; Pkg.Registry.add(Pkg.RegistrySpec(url="https://github.com/astro-group-bristol/AstroRegistry/"))'
julia -e 'import Pkg; Pkg.Registry.add(Pkg.RegistrySpec(url="https://github.com/JuliaRegistries/General"))'
julia --project=docs -e '
using Pkg
Pkg.add("Plots")
Pkg.add("UnicodePlots")
Pkg.add("BenchmarkTools")
Pkg.add("Surrogates")
Pkg.add("Turing")
Pkg.add("StatsPlots")
Pkg.add(url = "https://github.com/astro-group-bristol/LibXSPEC_jll.jl#master")
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- run: julia --color=yes -tauto --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}