Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…
| #!/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 | |
| ) |