Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 14 lines (13 sloc) 343 Bytes
#!/bin/bash
rm -rf dist || exit 0;
mkdir dist;
gulp build
cp ./ops/CNAME ./dist
( cd dist
git init
git config user.name "anvaka"
git config user.email "anvaka@gmail.com"
git add .
git commit -m "Deployed to Github Pages"
git push --force --quiet "https://${GH_TOKEN}@github.com/anvaka/npmgraph.an.git" master:gh-pages > /dev/null 2>&1
)