summaryrefslogtreecommitdiff
path: root/.local/bin/upsite
blob: c6ef4049771a52a74d4866e560d77f59e927837d (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

sitename="chausse.xyz"

branch="construction"

cd "$HOME/Workspace/$sitename$construction" && git pull origin $branch && git checkout $branch

hugo --gc=true --minify

rsync -auvz "$HOME/Workspace/$sitename$construction/public/" "master@$sitename:/var/www/chausse"