Skip to content
mdr edited this page Oct 18, 2011 · 27 revisions

Release process script

Prepare trunk

export FROM=0.0.9
export TO=0.1.0
export NEW=0.1.1
sed -i s/$FROM/$TO/g README.rst

Branch

git add .
git commit -a -m "Preparing for $TO release"
git checkout -b $TO
scripts/update-version.sh $TO-SNAPSHOT $TO
git grep -n $TO-SNAPSHOT # $FROM etc

Edit project/build/Project.scala -- switch publishTo line to releases at ScalaTools

git commit -a -m "Update versions for $TO release"

Publish to Scala tools.

sbt
> +test    
> project scalariform
> +publish

Check at http://scala-tools.org/repo-releases/org/scalariform/scalariform_2.8.0/

Publish to posterous

> project scalariform
> preview-notes
> check-posterous
> publish-notes

Check https://github.com/softprops/posterous-sbt

Publish maven plugin

cd scalariform.maven-plugin
mvn deploy

Push new branch to Github

Update master

git co master
scripts/update-version.sh $TO-SNAPSHOT $NEW-SNAPSHOT
scripts/update-version.sh $TO.qualifier $NEW.qualifier
git commit -a -m "Update versions for $NEW-SNAPSHOT"
Clone this wiki locally