diff --git a/release.sh b/release.sh index 2a8e126..9aae541 100755 --- a/release.sh +++ b/release.sh @@ -32,8 +32,13 @@ fi git checkout master git pull git checkout --detach + +# Build generated files and add them to the repository (for bower) +git clean -fdx build dist make setup dist -git add dist/ +sed -i.bak -E '/^\/dist\/$/d' .gitignore +rm -f .gitignore.bak +git add .gitignore dist/ # Edit package.json and bower.json to the right version (see # http://stackoverflow.com/a/22084103 for why we need the .bak file to make