Skip to content

Commit d4f7936

Browse files
authored
Merge pull request #229 from kaipartmann/robust-servedocs
Automatic `dev` with documentation
2 parents eab5212 + 18e4e4c commit d4f7936

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ jobs:
5757
version: '1'
5858
- uses: julia-actions/cache@v2
5959
- uses: julia-actions/julia-buildpkg@v1
60+
- run: |
61+
julia --project=docs -e '
62+
using Pkg;
63+
Pkg.develop(PackageSpec(path=pwd()));
64+
Pkg.instantiate()'
6065
- uses: julia-actions/julia-docdeploy@v1
6166
env:
6267
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docs/servedocs.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
const REPO_ROOT = dirname(@__DIR__)
77

88
# Make sure the docs environment is active and instantiated
9-
import Pkg
9+
using Pkg
1010
Pkg.activate(@__DIR__)
11+
Pkg.develop(PackageSpec(path=REPO_ROOT))
1112
Pkg.instantiate()
1213

1314
# Communicate with make.jl that docs are build in live mode

0 commit comments

Comments
 (0)