update-build
This commit is contained in:
parent
2167319cfb
commit
4f13e9cc0c
1 changed files with 11 additions and 1 deletions
12
build.sh
12
build.sh
|
@ -1,5 +1,15 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
if [[ -z "${!1+x}" ]]; then
|
||||||
|
echo "Error: Variable '$1' is not set"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
hugo --cleanDestinationDir
|
hugo --cleanDestinationDir
|
||||||
|
|
||||||
sudo rsync -av --delete ./public/ /var/www/g/public/
|
sudo rsync -av --delete ./public/ /var/www/pol/public/
|
||||||
|
|
||||||
|
git add .
|
||||||
|
|
||||||
|
git commit -S -m "$1"
|
||||||
|
|
||||||
|
git push
|
||||||
|
|
Loading…
Add table
Reference in a new issue