forked from Ocramius/ocramius.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
28 lines (20 loc) · 811 Bytes
/
Copy pathbuild.sh
File metadata and controls
28 lines (20 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
set -x
git submodule update --init
curl -sS https://getcomposer.org/installer | php
./composer.phar install
rm -rf ./output_prod
./vendor/bin/sculpin generate --env=prod
cp -r ./presentations/ output_prod/presentations/
rm -rf ./output_prod/presentations/*/.git
rm -rf ./gh-pages-deployment
git clone git@github.com:Ocramius/ocramius.github.com.git ./gh-pages-deployment
cd gh-pages-deployment
#git submodule update --init
#cp -r ./presentations ./../output_prod/presentations
git checkout master
git checkout -b master
rsync --quiet --archive --filter="P .git*" --exclude=".*.sw*" --exclude=".*.un~" --delete ../output_prod/ ./
git add -A :/
git commit -a -m "Deploying sculpin-generated pages to \`master\` branch"
echo "Now please push \`master\` manually from dir \`gh-pages-deployment\`"