New documentation using MultiDocumenter.jl #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |