-
Notifications
You must be signed in to change notification settings - Fork 47
110 lines (102 loc) · 4.12 KB
/
multidocs.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: MultiDocumentation
on:
push:
branches:
- new-multidocs
tags: '*'
pull_request:
jobs:
build_multidocs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: '1.10.4'
# Build GNNGraphs docs
- name: Install dependencies for GNNGraphs
run: julia --project=GNNGraphs/docs/ -e 'using Pkg; Pkg.instantiate();'
- name: Build GNNGraphs docs
run: julia --project=GNNGraphs/docs/ GNNGraphs/docs/make.jl
- name: Check if objects.inv exists for GNNGraphs
run: |
if [ -f GNNGraphs/docs/build/objects.inv ]; then
echo "GNNGraphs: objects.inv exists."
else
echo "GNNGraphs: objects.inv does not exist!" && exit 1
fi
# Build GNNlib docs
- name: Install dependencies for GNNlib
run: julia --project=GNNlib/docs/ -e 'using Pkg; Pkg.instantiate();'
- name: Build GNNlib docs
run: julia --project=GNNlib/docs/ GNNlib/docs/make.jl
- name: Check if objects.inv exists for GNNlib
run: |
if [ -f GNNlib/docs/build/objects.inv ]; then
echo "GNNlib: objects.inv exists."
else
echo "GNNlib: objects.inv does not exist!" && exit 1
fi
# Build GNNLux docs
- name: Install dependencies for GNNLux
run: julia --project=GNNLux/docs/ -e '
using Pkg;
Pkg.develop(PackageSpec(path=joinpath(pwd(), "GNNLux")));
Pkg.instantiate();'
- name: Build GNNLux docs
run: julia --project=GNNLux/docs/ GNNLux/docs/make.jl
- name: Check if objects.inv exists for GNNLux
run: |
if [ -f GNNLux/docs/build/objects.inv ]; then
echo "GNNLux: objects.inv exists."
else
echo "GNNLux: objects.inv does not exist!" && exit 1
fi
# Build GraphNeuralNetworks docs
- name: Install dependencies for main docs
run: julia --project=GraphNeuralNetworks/docs/ -e '
using Pkg;
Pkg.develop(PackageSpec(path=joinpath(pwd(), "GraphNeuralNetworks")));
Pkg.instantiate();'
- name: Build main docs
run: julia --project=GraphNeuralNetworks/docs/make.jl
- name: Check if objects.inv exists for GraphNeuralNetworks
run: |
if [ -f GraphNeuralNetworks/docs/build/objects.inv ]; then
echo "GraphNeuralNetworks: objects.inv exists."
else
echo "GraphNeuralNetworks: objects.inv does not exist!" && exit 1
fi
# Build tutorials
- name: Install dependencies for tutorials
run: julia --project=tutorials/docs/ -e 'using Pkg; Pkg.instantiate();'
- name: Build tutorials
run: julia --project=tutorials/docs/ tutorials/docs/make.jl
- name: Check if objects.inv exists for tutorials
run: |
if [ -f tutorials/docs/build/objects.inv ]; then
echo "tutorials: objects.inv exists."
else
echo "tutorials: objects.inv does not exist!" && exit 1
fi
# Build and deploy multidocs
- name: Install dependencies for multidocs
run: julia --project=docs/ -e '
using Pkg;
Pkg.develop([PackageSpec(path=joinpath(pwd(), "GraphNeuralNetworks")),
PackageSpec(path=joinpath(pwd(), "GNNGraphs")),
PackageSpec(path=joinpath(pwd(), "GNNlib")),
PackageSpec(path=joinpath(pwd(), "GNNLux"))]);
Pkg.instantiate();'
- name: Check if objects.inv exists for GraphNeuralNetworks
run: |
if [ -f GraphNeuralNetworks/docs/build/objects.inv ]; then
echo "GraphNeuralNetworks: objects.inv exists."
else
echo "GraphNeuralNetworks: objects.inv does not exist!" && exit 1
fi
- name: Build and deploy multidocs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --project=docs/ docs/make-multi.jl