Explorar el Código

Pull builder code before building

main
Adrian Short hace 7 años
padre
commit
1933db87f1
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. +9
    -0
      bin/deploy

+ 9
- 0
bin/deploy Ver fichero

@@ -1,8 +1,17 @@
#!/usr/bin/env sh #!/usr/bin/env sh


# Get the latest code
echo "Getting the latest code"
git pull origin master

echo "Downloading from Morph API"
bundle exec bin/download bundle exec bin/download

echo "Building site"
bundle exec bin/petrify bundle exec bin/petrify
cd _site cd _site
git commit -am "Update content" git commit -am "Update content"

echo "Pushing static site to git"
git push origin master git push origin master
cd - cd -

Cargando…
Cancelar
Guardar