Skip to content

Commit

Permalink
Test branch docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aurorarossi committed Oct 26, 2024
1 parent daa4fb8 commit e491e19
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/make-multi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,25 @@ MultiDocumenter.make(

cp(joinpath(@__DIR__, "logo.svg"),
joinpath(outpath, "logo.svg"))

#test
outbranch = "test"
has_outbranch = true

if !success(`git checkout --orphan $outbranch`)
has_outbranch = false
@info "Creating orphaned branch $outbranch"
if !success(`git switch --orphan $outbranch`)
@error "Cannot create new orphaned branch $outbranch."
exit(1)
end
end

run(`git add --all`)

if success(`git commit -m 'Aggregate documentation'`)
@info "Pushing updated documentation."
run(`git push origin --force $outbranch`)
else
@info "No changes to aggregated documentation."
end

0 comments on commit e491e19

Please sign in to comment.