mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
40fd4b3626
This commit makes two conceptually independent changes: 1. It adds a checksum file to each version folder. This allows the script to detect when a version has not been correctly uploaded. 2. It changes the script to first download all the docs website, and then reuse existing version folders where appropriate (i.e. when their folder matches its checksum). The hope is that this will reduce the time it takes to deploy a new version, as only the current version should be rebuilt (in addition to previous, failed versions). The first time this cron runs (upon next release as per the current setup), however, it will still rebuild all existing versions as they do not currently have a checksum. CHANGELOG_BEGIN CHANGELOG_END
29 lines
636 B
Python
29 lines
636 B
Python
# Copyright (c) 2020 The DAML Authors. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
load("//bazel_tools:haskell.bzl", "da_haskell_binary")
|
|
|
|
da_haskell_binary(
|
|
name = "cron",
|
|
srcs = glob(["src/**/*.hs"]),
|
|
hackage_deps = [
|
|
"aeson",
|
|
"base",
|
|
"containers",
|
|
"directory",
|
|
"extra",
|
|
"filepath",
|
|
"http-client",
|
|
"http-client-tls",
|
|
"http-types",
|
|
"process",
|
|
"split",
|
|
"text",
|
|
"unordered-containers",
|
|
"utf8-string",
|
|
],
|
|
src_strip_prefix = "src",
|
|
visibility = ["//visibility:public"],
|
|
deps = [],
|
|
)
|