~animesh/anmsh.net

9892b108ce2da7c07647abbc437bc7d22edcba53 — Animesh Bulusu 4 months ago be25867
Add cd step for each build task
1 files changed, 4 insertions(+), 2 deletions(-)

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