Commit aa8ca7ec authored by Nick Stenning's avatar Nick Stenning

Small tweaks to postversion.sh

- #!/bin/sh is in POSIX, no need for env
- `set -eu` to explode if something fails or a var isn't defined
- a simpler way of ensuring we're in the right place to run the releaser
  script.
- "git push --follow-tags" will push pending commits and annotated tags
  attached to them in a single command
parent 203d80d5
#!/usr/bin/env sh
#!/bin/sh
SCRIPT_DIR=$(dirname `readlink -f "$0"`)
set -eu
git push
git push --tags
cd "$(dirname "$0")"
git push --follow-tags
# Wait a moment to give GitHub a chance to realize that the tag exists
sleep 2
$SCRIPT_DIR/create-github-release.js
./create-github-release.js
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment