From 0bc0939b9bbaeb5fa954c862b9b37a9a392fbe22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Echedey=20L=C3=B3pez=20Romero?= Date: Thu, 22 Jul 2021 00:23:49 +0000 Subject: [PATCH] Update 'update.sh' --- update.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/update.sh b/update.sh index b2e6dc6..2035c09 100755 --- a/update.sh +++ b/update.sh @@ -1,22 +1,23 @@ #!/bin/sh +# Comprobar que existe directorio de la web directorio="$HOME/web" - if [ "$PWD" != "$directorio" ] then cd "$directorio" fi +# Descargar cambios del repositorio principal git pull +# Actualizar dependencias de Ruby bundle && bundle update +# Construir el sitio web JEKYLL_ENV=production bundle exec jekyll build --trace +# Subir cambios al repositorio principal git add Gemfile - git add Gemfile.lock - -git commit -m "Actualizar Gemfile.lock" - +git commit -m "Actualizar Gemfile y Gemfile.lock" git push origin main