@@ -343,6 +343,7 @@ function Documenter.deploy_folder(::BuildBotConfig; devurl, repo, branch, kwargs
343343 @info " Unable to deploy the documentation: DOCUMENTER_KEY missing"
344344 return Documenter. DeployDecision (; all_ok= false )
345345 end
346+ release = match (r" release-([0-9]+\. [0-9]+)" , Base. GIT_VERSION_INFO. branch)
346347 if Base. GIT_VERSION_INFO. tagged_commit
347348 # Strip extra pre-release info (1.5.0-rc2.0 -> 1.5.0-rc2)
348349 ver = VersionNumber (VERSION . major, VERSION . minor, VERSION . patch,
@@ -351,6 +352,10 @@ function Documenter.deploy_folder(::BuildBotConfig; devurl, repo, branch, kwargs
351352 return Documenter. DeployDecision (; all_ok= true , repo, branch, subfolder)
352353 elseif Base. GIT_VERSION_INFO. branch == " master"
353354 return Documenter. DeployDecision (; all_ok= true , repo, branch, subfolder= devurl)
355+ elseif ! isnothing (release)
356+ # If this is a non-tag build from a release-* branch, we deploy them as dev docs into the
357+ # appropriate vX.Y-dev subdirectory.
358+ return Documenter. DeployDecision (; all_ok= true , repo, branch, subfolder= " v$(release[1 ]) -dev" )
354359 end
355360 @info """
356361 Unable to deploy the documentation: invalid GIT_VERSION_INFO
0 commit comments