aboutsummaryrefslogtreecommitdiff
path: root/push-gh-pages.sh
blob: 6c0705ade0bef550412a46bfb3ffb6391ac61652 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
rm -rf gh-pages
git clone --depth=1 [email protected]:victorhaggqvist/touch-imagelightbox.git --branch gh-pages gh-pages
rm -rf gh-pages/*
cp demo/* gh-pages
pushd gh-pages
git add .
git commit -m "$(git rev-parse --git-dir=../.git --short HEAD)"
git push origin gh-pages --force
popd