Skip to content

Commit

Permalink
update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed May 29, 2023
1 parent 63fdde2 commit 5d7775f
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions script/release
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
#!/bin/sh
set -euo pipefail

bin/rspec spec
BUNDLE_GEMFILE=environments/Gemfile.non-rails.rb bin/rspec spec-non-rails

changelog() {
local previous_tag="$(git describe --tags HEAD^ --abbrev=0)"
git log --first-parent --format='* %s%n%w(0,2,2)%+b' --reverse "${previous_tag}..HEAD^" "$@"
}

eval "$(gem build *.gemspec | awk '/(Name|Version|File): /{print tolower($1) $2}' | sed 's/:/=/')"

git commit -m "${name} ${version}" -- lib/will_paginate/version.rb
Expand All @@ -18,7 +10,4 @@ git push origin HEAD "v${version}"
gem push "$file"
rm -rf "$file"

{ echo "${name} ${version}"
echo
changelog -- lib
} | hub release create -F- --edit "v${version}"
gh release create "v${version}" --title "${name} ${version}" --generate-notes

0 comments on commit 5d7775f

Please sign in to comment.