Skip to content

Commit 59bdfaa

Browse files
workflow
1 parent 4d711e8 commit 59bdfaa

File tree

1 file changed

+16
-76
lines changed

1 file changed

+16
-76
lines changed

.github/workflows/multidocs.yml

Lines changed: 16 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: MultiDocumentation
1+
name: Docs
22

33
on:
44
push:
@@ -8,87 +8,27 @@ on:
88
pull_request:
99

1010
jobs:
11-
build_multidocs:
11+
docs:
12+
name: Documentation
1213
runs-on: ubuntu-latest
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
16+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
1317
steps:
1418
- uses: actions/checkout@v4
1519
- uses: julia-actions/setup-julia@v2
1620
with:
17-
version: '1.10.5'
21+
version: '1'
1822
- uses: julia-actions/cache@v2
19-
20-
- name: Set up
21-
run: git config --global init.defaultBranch master
22-
23-
- name: Build GNNGraphs docs
24-
run:
25-
julia --project=GNNGraphs/docs/ -e '
26-
using Pkg;
27-
pkg"dev ./GNNGraphs";
28-
Pkg.instantiate();
29-
include("GNNGraphs/docs/make.jl")'
30-
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
32-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
33-
34-
- name: Build GNNlib docs
35-
run: julia --project=GNNlib/docs/ -e '
36-
using Pkg;
37-
pkg"dev ./GNNlib ./GNNGraphs";
38-
Pkg.instantiate();
39-
include("GNNlib/docs/make.jl")'
40-
env:
41-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
42-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
43-
44-
- name: Build GNNLux docs
45-
run: julia --project=GNNLux/docs/ -e '
46-
using Pkg;
47-
pkg"dev ./GNNLux ./GNNlib ./GNNGraphs";
48-
Pkg.instantiate();
49-
include("GNNLux/docs/make.jl")'
50-
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
52-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
53-
54-
- name: Build GraphNeuralNetworks docs
55-
run: julia --project=GraphNeuralNetworks/docs/ -e '
56-
using Pkg;
57-
pkg"dev ./GraphNeuralNetworks ./GNNlib ./GNNGraphs";
58-
Pkg.instantiate();
59-
include("GraphNeuralNetworks/docs/make.jl")'
60-
env:
61-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
62-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
63-
64-
65-
# Build and deploy multidocs
66-
- name: Install dependencies for multidocs
67-
run: julia --project=docs/ -e '
68-
using Pkg;
69-
pkg"dev ./GraphNeuralNetworks ./GNNlib ./GNNGraphs ./GNNLux";
70-
Pkg.instantiate();'
71-
- name: Check if objects.inv exists for GraphNeuralNetworks
72-
run: |
73-
if [ -f GraphNeuralNetworks/docs/build/objects.inv ]; then
74-
echo "GraphNeuralNetworks: objects.inv exists."
75-
else
76-
echo "GraphNeuralNetworks: objects.inv does not exist!" && exit 1
77-
fi
78-
- name: Config git
79-
env:
80-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
81-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
23+
# Build individual docs
24+
- run: julia GNNGraphs/docs/make.jl
25+
- run: julia GNNlib/docs/make.jl
26+
- run: julia GNNLux/docs/make.jl
27+
- run: julia GraphNeuralNetworks/docs/make.jl
28+
# Compile multi docs
29+
- name: MultiDocs
8230
run: |
8331
git config user.name github-actions
8432
git config user.email [email protected]
85-
86-
- name: Build multidocs
87-
if: github.event_name == 'pull_request'
88-
run: |
89-
julia --project=docs/ docs/make-multi.jl PR
90-
91-
- name: Build and deploy multidocs
92-
if: github.event_name != 'pull_request'
93-
run: |
94-
julia --project=docs/ docs/make-multi.jl
33+
julia --project=docs/ -e 'using Pkg; Pkg.instantiate()'
34+
julia --project=docs/ docs/make-multi.jl

0 commit comments

Comments
 (0)