lesion 89c6ede98b metro | il y a 1 an | |
---|---|---|
.vscode | il y a 2 ans | |
archive | il y a 1 an | |
docs | il y a 1 an | |
theme | il y a 1 an | |
.gitignore | il y a 4 ans | |
README.md | il y a 2 ans | |
mkdocs.yml | il y a 1 an |
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