15 lines
406 B
Bash
Executable File
15 lines
406 B
Bash
Executable File
#! /bin/bash
|
|
|
|
echo "Cleaning up..."
|
|
rm ./_tmp -rf
|
|
mkdir -p ./_tmp/
|
|
echo "Compiling..."
|
|
bundle exec jekyll build
|
|
echo "Creating the package..."
|
|
tar zcf _tmp/package.tar.gz _site/
|
|
echo "Uploading the package..."
|
|
scp _tmp/package.tar.gz lxsameer@core.lxsameer.com:/home/lxsameer/tmp/package.tar.gz
|
|
echo "Running remote commands..."
|
|
ssh lxsameer@core.lxsameer.com 'bash -s' < ./_scripts/remote.sh
|
|
echo "Done!"
|