forked from octokit/octokit.rb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
# Usage: script/gem | ||
# Updates the gemspec and builds a new gem in the pkg directory. | ||
|
||
mkdir -p pkg | ||
gem build *.gemspec | ||
mv *.gem pkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
# Usage: script/release | ||
# Build the package, tag a commit, push it to origin, and then release the | ||
# package publicly. | ||
|
||
set -e | ||
|
||
version="$(script/package | grep Version: | awk '{print $2}')" | ||
[ -n "$version" ] || exit 1 | ||
|
||
echo $version | ||
git commit --allow-empty -a -m "Release $version" | ||
git tag "v$version" | ||
git push origin | ||
git push origin "v$version" | ||
gem push pkg/*-${version}.gem |