Skip to content

Commit e4576f8

Browse files
mortenpifredrikekre
authored andcommitted
Exclude pre-release tags from PDF builds (#3)
1 parent 456b738 commit e4576f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pdf/make.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ function collect_versions()
121121
# lines are in the form 'COMMITSHA\trefs/tags/TAG'
122122
_, ref = split(line, '\t')
123123
_, _, tag = split(ref, '/')
124-
if occursin(Base.VERSION_REGEX, tag)
124+
if occursin(r"^v\d+\.\d+\.\d+$", tag)
125+
# the version regex is not as general as Base.VERSION_REGEX -- we only build "pure"
126+
# versions and exclude tags that are pre-releases or have build information.
125127
v = VersionNumber(tag)
126128
# pdf doc only possible for 1.0.3 and above
127129
v >= v"1.0.4" && push!(versions, v)

0 commit comments

Comments
 (0)