Skip to content
mdr edited this page May 7, 2012 · 27 revisions

Release process script

Prepare trunk

export FROM=0.1.1
export TO=0.1.2
export NEW=0.1.3
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

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

Publish to Sonatype staging

(May need to up -XX:ReservedCodeCacheSize=)

sbt
> +test    
> project scalariform
> +publish

Check at https://oss.sonatype.org/content/groups/public/org/scalariform/

Close and then release at: https://oss.sonatype.org/index.html#stagingRepositories

Publish to posterous

> project scalariform
> posterous:preview
> posterous:check
> posterous:publish

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

Publish maven plugin

cd scalariform.maven-plugin
mvn deploy

Check http://nexus.scala-tools.org/content/repositories/releases/org/scalariform/scalariform-maven-plugin/0.1.1/

Push new branch to Github

git push -u origin $TO

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