Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroripper committed Apr 25, 2023
1 parent ab45319 commit 1417256
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/multimake.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function deploymultidocs(path::AbstractString; branch::String="gh-multi-pages",
has_branch = false

if !success(`git switch --orphan $branch`)
@error "Cannot create new orphaned branch $outbranch."
@error "Cannot create new orphaned branch $branch."
exit(1)
end
end
Expand All @@ -66,13 +66,13 @@ function deploymultidocs(path::AbstractString; branch::String="gh-multi-pages",
rm(file; force=true, recursive=true)
end

mkpath(path) # creates if not exists
# mkpath(path) # creates if not exists

for file in readdir(path)
cp(joinpath(path, file), joinpath(root_path, file))
end

run(`git add --all`)
run(`git add .`)

if success(`git commit -m 'Aggregate documentation'`)
@info "Pushing updated documentation"
Expand All @@ -91,7 +91,7 @@ function deploymultidocs(path::AbstractString; branch::String="gh-multi-pages",
return nothing
end

build_path = joinpath(@__DIR__, "build")
build_path = mktempdir()

buildmultidocs(build_path, docs)

Expand Down

0 comments on commit 1417256

Please sign in to comment.