forked from ept/invoicing
-
Notifications
You must be signed in to change notification settings - Fork 2
/
release.sh
25 lines (20 loc) · 820 Bytes
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# How to make a release.
# * Configure new version number in invoicing/lib/invoicing/version.rb
# * Add details on the new release to History.txt
export VERSION=x.y.z
# Test locally:
(cd invoicing; rake manifest; rake install_gem)
(cd invoicing_generator; rake manifest; rake install_gem)
git commit -a -m "Set version number to $VERSION"
# `rake release` expects VERSION=... environment variable to be set
(cd invoicing; rake release)
(cd invoicing_generator; rake release)
(cd invoicing; rake post_news)
# Tag and push it
git tag -a -m "Tagging release $VERSION" "v$VERSION"
git push github
git push rubyforge
git push --tags github
git push --tags rubyforge
# Build docs and upload them
(cd invoicing; rake docs; rsync -av --delete --ignore-errors doc/ ept@rubyforge.org:/var/www/gforge-projects/invoicing/doc)