-
Notifications
You must be signed in to change notification settings - Fork 1
95 lines (75 loc) · 3.31 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Documentation
on:
push:
branches:
- main
tags: "*"
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
#
# EphemerisSourcesBase Documentation
#
- name: Install Documentation Dependencies for EphemerisSourcesBase
run: julia --project=lib/EphemerisSourcesBase/docs -e 'using Pkg; Pkg.develop(PackageSpec(path = joinpath("lib", "EphemerisSourcesBase"))); Pkg.instantiate()'
- name: Build and deploy EphemerisSourcesBase
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
working-directory: lib/EphemerisSourcesBase
run: julia --project=docs/ docs/make.jl
#
# HorizonsAPI Documentation
#
- name: Install Documentation Dependencies for HorizonsAPI
run: julia --project=lib/HorizonsAPI/docs -e 'using Pkg; Pkg.develop(PackageSpec(path = joinpath("lib", "HorizonsAPI"))); Pkg.instantiate()'
- name: Build and deploy HorizonsAPI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
working-directory: lib/HorizonsAPI
run: julia --project=docs/ docs/make.jl
#
# HorizonsEphemeris Documentation
#
- name: Install Documentation Dependencies for HorizonsEphemeris
run: julia --project=lib/HorizonsEphemeris/docs -e 'using Pkg; Pkg.develop(PackageSpec(path = joinpath("lib", "HorizonsEphemeris"))); Pkg.instantiate()'
- name: Build and deploy HorizonsEphemeris
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
working-directory: lib/HorizonsEphemeris
run: julia --project=docs/ docs/make.jl
#
# SPICEKernels Documentation
#
- name: Install Documentation Dependencies for SPICEKernels
run: julia --project=lib/SPICEKernels/docs -e 'using Pkg; Pkg.develop(PackageSpec(path = joinpath("lib", "SPICEKernels"))); Pkg.instantiate()'
- name: Build and deploy SPICEKernels
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
working-directory: lib/SPICEKernels
run: julia --project=docs/ docs/make.jl
#
# SPICEBodies Documentation
#
- name: Install Documentation Dependencies for SPICEBodies
run: julia --project=lib/SPICEBodies/docs -e 'using Pkg; Pkg.develop(PackageSpec(path = joinpath("lib", "SPICEBodies"))); Pkg.instantiate()'
- name: Build and deploy SPICEBodies
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
working-directory: lib/SPICEBodies
run: julia --project=docs/ docs/make.jl
- name: Install Documentation Dependencies
run: julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path = @__DIR__)); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
run: julia --project=docs/ docs/make.jl