@@ 9,13 9,8 @@ environment:
sources:
- https://git.sr.ht/~animesh/anmsh.net
tasks:
- - install: |
- pipx ensurepath
- pipx install lektor
- - build: |
- cd $site
- lektor build --output-path public -f minify:html,css,js
+ - run-lektor: |
+ pipx run lektor build --output-path $site/public -f minify:html,css,js &> /dev/null
gzip -k -6 -r public
- - deploy: |
- cd $site
- rsync -r public/* dploy@anmsh.net:/var/www/anmsh.net/ -e "ssh -p 11132 -o StrictHostKeyChecking=no"
+ - deploy-site: |
+ rsync -r $site/public/* dploy@anmsh.net:/var/www/anmsh.net/ -e "ssh -p 11132 -o StrictHostKeyChecking=no"