samba ec19df1110 fix come arrivare, treni | před 1 rokem | |
---|---|---|
.vscode | před 2 roky | |
archive | před 1 rokem | |
docs | před 1 rokem | |
theme | před 1 rokem | |
.gitignore | před 4 roky | |
README.md | před 2 roky | |
mkdocs.yml | před 1 rokem |
Fatto con mkdocs.
Puoi cambiare i testi dei markdown anche qui, poi qualcuno fara' il deploy.
niente CI, niente webhook, devi mettere questo qui sotto in .git/hooks/pre-push
e renderlo +x
#!/bin/sh
remoteUser="root"
remoteServer="castro.cose.belle"
remotePath="/var/www/hackrocchio"
localPath="./site/"
buildCmd="mkdocs build"
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
if [ $current_branch = "master" ]; then
$buildCmd
echo Updating files...
rsync -rzhe ssh --delete --filter=':- .gitignore' ./site/ $remoteUser@$remoteServer:$remotePath
fi
# and you're done!
exit 0