Skip to content

Commit 7779069

Browse files
committed
Add back the old release task
Some people don't have gpg sign enabled and need to specify the RubyGems host in order to release.
1 parent 9375d99 commit 7779069

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

bin/release

+9-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@
22

33
VERSION=$1
44

5+
if [ -z "$VERSION" ]; then
6+
echo "Usage: $0 <version>"
7+
exit 1
8+
fi
9+
510
printf "module Tailwindcss\n VERSION = \"$VERSION\"\nend\n" > ./lib/tailwindcss/version.rb
611
bundle
712
git add Gemfile.lock lib/tailwindcss/version.rb
813
git commit -m "Bump version for $VERSION"
914
git push
10-
git tag -s v$VERSION
11-
bundle exec rake release
15+
git tag v$VERSION
1216
git push --tags
13-
rm -Rf pkg
17+
gem build tailwindcss-rails.gemspec
18+
gem push "tailwindcss-rails-$VERSION.gem" --host https://rubygems.org
19+
rm "tailwindcss-rails-$VERSION.gem"

0 commit comments

Comments
 (0)