Fix documentation building
This commit is contained in:
parent
01c1b5082f
commit
ba97086983
@ -45,15 +45,33 @@ jobs:
|
||||
- name: Run examples
|
||||
run: julia --project=examples/ -t 4 -e 'import Pkg; Pkg.develop(Pkg.PackageSpec(path=pwd())); Pkg.instantiate(); include("examples/import_bench.jl")' -O3
|
||||
|
||||
docs:
|
||||
runs-on: arch-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Julia environment
|
||||
uses: https://github.com/julia-actions/setup-julia@v1.9.2
|
||||
with:
|
||||
version: '1.9.2'
|
||||
|
||||
- name: Build docs
|
||||
run: |
|
||||
cd docs
|
||||
julia --project=. make.jl
|
||||
zip web_docs.zip build/* -r
|
||||
cd ..
|
||||
julia --project=docs/ -t 4 -e 'import Pkg; Pkg.develop(Pkg.PackageSpec(path=pwd())); Pkg.instantiate()'
|
||||
julia --project=docs/ docs/make.jl
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: web-doc
|
||||
path: build/web_docs.zip
|
||||
path: build/
|
||||
|
||||
- name: Webhook Trigger
|
||||
uses: https://github.com/zzzze/webhook-trigger@master
|
||||
with:
|
||||
data: "{\"event_type\":\"action_completed\", \"download_url\":\"deckardcain.local:8099/something\"}"
|
||||
webhook_url: ${{ secrets.WEBHOOK_URL }}
|
||||
|
@ -4,7 +4,7 @@ using MetagraphOptimization
|
||||
makedocs(
|
||||
#format = Documenter.LaTeX(platform=""),
|
||||
|
||||
root = ".",
|
||||
root = "docs",
|
||||
source = "src",
|
||||
build = "build",
|
||||
clean = true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user