docs/build

22 строки
483 B
Plaintext
Исходник Обычный вид История

2013-12-20 00:36:53 +04:00
#!/bin/sh
2014-02-24 18:49:58 +04:00
set -e
2013-12-20 00:36:53 +04:00
#install all deps
2014-06-11 20:12:07 +04:00
npm install
2013-12-20 00:36:53 +04:00
#set the version number in the package json without a new commit.
mv .git .git-back
npm version $BUILD_NUMBER
mv .git-back .git
#remove ignore files
find . -name ".npmignore" -o -name ".gitignore" -delete
#create a tar.gz
bn=${PWD##*/}
tar -czf /tmp/auth0-docs-$BUILD_NUMBER.tgz --exclude=".git" --exclude="$bn/test" -C .. $bn/
mv /tmp/auth0-docs-$BUILD_NUMBER.tgz ./auth0-docs-$BUILD_NUMBER.tgz
#revert all changes
git checkout .