| # Copyright lowRISC contributors. |
| # Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| # SPDX-License-Identifier: Apache-2.0 |
| echo "You must specify either \"public\" or \"staging\"" |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" |
| hugo deploy --target "${TARGET}" --confirm --verbose --maxDeletes -1 |
| if [ "${TARGET}" = "public" ]; then |
| # TODO: The ability to invalidate a Cloud CDN cache is pending in upstream |
| # hugo. Once it's landed this can be rolled into the hugo configuration. |
| gcloud compute url-maps invalidate-cdn-cache "opentitan-dot-org" --path="/*" \ |