update-build
This commit is contained in:
parent
067262313d
commit
bf7334a2a6
1 changed files with 10 additions and 0 deletions
10
build.sh
10
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/pol/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