summaryrefslogtreecommitdiff
path: root/.local/bin/upsite
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2023-12-09 21:22:18 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2023-12-09 21:22:18 -0500
commitd4775d06c87a284b8933634c205c9af11121e4d6 (patch)
tree79bf7a1059977fe1a9d302d001ae7a2fb305c7b0 /.local/bin/upsite
parenta74a51b84b1a36a5021531403778bf1be2125676 (diff)
parented5ac0e61f660dca6881fea5074d8478975a44c4 (diff)
Merge branch 'master' of github.com:ChausseBenjamin/dotfiles
Diffstat (limited to '.local/bin/upsite')
-rwxr-xr-x.local/bin/upsite6
1 files changed, 4 insertions, 2 deletions
diff --git a/.local/bin/upsite b/.local/bin/upsite
index aad82be..c6ef404 100755
--- a/.local/bin/upsite
+++ b/.local/bin/upsite
@@ -2,8 +2,10 @@
sitename="chausse.xyz"
-cd "$HOME/Workspace/$sitename"
+branch="construction"
+
+cd "$HOME/Workspace/$sitename$construction" && git pull origin $branch && git checkout $branch
hugo --gc=true --minify
-rsync -auvz "$HOME/Workspace/$sitename/public/" "master@$sitename:/var/www/dev"
+rsync -auvz "$HOME/Workspace/$sitename$construction/public/" "master@$sitename:/var/www/chausse"