try new approach for building and deploying docs (#552) #206
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: Docs | |
on: | |
push: | |
branches: | |
- master | |
tags: '*' | |
pull_request: | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token | |
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@v2 | |
with: | |
version: '1' | |
- uses: julia-actions/cache@v2 | |
# Build individual docs | |
- run: julia GNNGraphs/docs/make.jl | |
- run: julia GNNlib/docs/make.jl | |
- run: julia GNNLux/docs/make.jl | |
- run: julia GraphNeuralNetworks/docs/make.jl | |
# Compile multi docs | |
- name: MultiDocs | |
run: | | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
julia --project=docs/ -e 'using Pkg; Pkg.instantiate()' | |
julia --project=docs/ docs/make-multi.jl |