docs cron: do not build post-2.0 (#13572)

After 2.0, the docs need to be built alongside Canton files, and that is
taken care of by the [docs.daml.com] repo.

[docs.daml.com]: https://github.com/digital-asset/docs.daml.com

CHANGELOG_BEGIN
CHANGELOG_END
This commit is contained in:
Gary Verhaegen 2022-04-12 13:13:50 +02:00 committed by GitHub
parent b9db7c37a5
commit 90e03a3044
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,9 +247,11 @@ docs opts@DocOptions{includedVersion} = do
else do
-- We may have added versions. We need to build and push them.
let added = Set.toList $ all_versions gh_versions `Set.difference` all_versions s3_versions
-- post-2.0 versions are built and pushed by the docs.daml.com repo
let to_build = filter (version "2.0.0" >) added
IO.withTempDir $ \temp_dir -> do
putStrLn $ "Versions to build: " <> show added
build_and_push opts temp_dir added
build_and_push opts temp_dir to_build
-- If there is no version on GH, we dont have to do anything.
Control.Monad.Extra.whenJust (top gh_versions) $ \gh_top ->
Control.when (Just gh_top /= top s3_versions) $ do