diff --git a/docs/ci_build.sh b/docs/ci_build.sh index cce0fe12d..0a70e5829 100644 --- a/docs/ci_build.sh +++ b/docs/ci_build.sh @@ -54,6 +54,7 @@ export JULIA_CONDAPKG_BACKEND=MicroMamba julia='xvfb-run -a julia --color=yes --project=docs' +$julia -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/JuliaPlots/Plots.jl", rev=split(ENV["GITHUB_REF"], "/", limit=3)[3]), subdir="PlotsBase");' #FIXME: not needed when registered $julia -e ' using Pkg; Pkg.add("CondaPkg") using CondaPkg; CondaPkg.resolve() @@ -80,7 +81,6 @@ if [ "$GITHUB_REPOSITORY" == 'JuliaPlots/PlotDocs.jl' ]; then $julia -e 'using Pkg; Pkg.add(PackageSpec(name="Plots", rev="master"))' $julia docs/make.jl elif [ "$GITHUB_REPOSITORY" == 'JuliaPlots/Plots.jl' ]; then - $julia -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/JuliaPlots/Plots.jl", rev=split(ENV["GITHUB_REF"], "/", limit=3)[3]), subdir="PlotsBase");' $julia -e 'using Pkg; Pkg.add(PackageSpec(name="Plots", rev=split(ENV["GITHUB_REF"], "/", limit=3)[3])); Pkg.instantiate()' $julia -e 'withenv("GITHUB_REPOSITORY" => "JuliaPlots/PlotDocs.jl") do; include("docs/make.jl"); end' else