mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-17 15:57:21 +03:00
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:
parent
b9db7c37a5
commit
90e03a3044
@ -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 don’t have to do anything.
|
||||
Control.Monad.Extra.whenJust (top gh_versions) $ \gh_top ->
|
||||
Control.when (Just gh_top /= top s3_versions) $ do
|
||||
|
Loading…
Reference in New Issue
Block a user