addition multi-publish
This commit is contained in:
parent
27f53b0bac
commit
84d924bca6
12
publish
12
publish
|
@ -1,5 +1,15 @@
|
|||
#! /bin/bash
|
||||
FILE="$(realpath "${BASH_SOURCE[0]}")"
|
||||
DIRECTORY="$(dirname "${FILE}")"
|
||||
|
||||
TARGETS=(
|
||||
"kumquat@tilde.link:web"
|
||||
"kumquat@tilde.team:public_html"
|
||||
)
|
||||
|
||||
cd "${DIRECTORY}"
|
||||
zola build && \
|
||||
for target in "${TARGETS[@]}"; do
|
||||
rsync -a -c -P -v --delete-before \
|
||||
public/ kumquat@tilde.team:public_html/
|
||||
public/ "${target}/"
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue