Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 26 lines (19 sloc) 629 Bytes
#!/bin/bash
set -euxo pipefail
rm -rf release || exit 0;
elm-package bump
version=$(grep -m1 version elm-package.json | awk -F: '{ print $2 }' | sed 's/[", ]//g')
git commit -a -m "Bump to $version"
git push
cleanup="examples gh-pages.sh pipeline.png CONTRIBUTING.md .eslintrc.json release.sh"
last_commit=$(git rev-parse HEAD)
git clone --reference . git@github.com:elm-community/webgl.git release
(
cd release
git checkout $last_commit
git rm -rf --ignore-unmatch $cleanup
git commit -m "Cleanup and release $version"
git tag -a $version -m "Release $version"
git push origin $version
elm-package publish
)