Garret Kelly | cb74aff | 2019-10-21 14:53:09 -0400 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # Copyright lowRISC contributors. |
| 3 | # Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | |
| 6 | set -e |
| 7 | |
| 8 | TARGET=$1 |
| 9 | |
| 10 | case "${TARGET}" in |
| 11 | "public" | "staging") |
| 12 | ;; |
| 13 | |
| 14 | *) |
| 15 | echo "You must specify either \"public\" or \"staging\"" |
| 16 | exit 1 |
| 17 | ;; |
| 18 | esac |
| 19 | |
| 20 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" |
| 21 | cd $DIR |
| 22 | rm -rf public |
| 23 | |
Garret Kelly | ac03f71 | 2019-11-07 14:32:49 -0500 | [diff] [blame] | 24 | hugo |
| 25 | hugo deploy --target "${TARGET}" --confirm --verbose --maxDeletes -1 --invalidateCDN |