Skip to content

Commit

Permalink
rc docs: strip extra pre-release info, deploy to e.g. 1.5.0-rc2 inste…
Browse files Browse the repository at this point in the history
…ad of 1.5.0-rc2.0
  • Loading branch information
fredrikekre committed Jul 30, 2020
1 parent f130d9b commit 50c4e67
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,10 @@ struct BuildBotConfig <: Documenter.DeployConfig end
function Documenter.deploy_folder(::BuildBotConfig; devurl, kwargs...)
haskey(ENV, "DOCUMENTER_KEY") || return nothing
if Base.GIT_VERSION_INFO.tagged_commit
return "v$(Base.VERSION)"
# Strip extra pre-release info (1.5.0-rc2.0 -> 1.5.0-rc2)
ver = VersionNumber(VERSION.major, VERSION.minor, VERSION.patch,
isempty(VERSION.prerelease) ? () : (VERSION.prerelease[1],))
return "v$(ver)"
elseif Base.GIT_VERSION_INFO.branch == "master"
return devurl
end
Expand Down

0 comments on commit 50c4e67

Please sign in to comment.