Skip to content

Instantly share code, notes, and snippets.

@ananthakumaran
Created April 10, 2010 06:36
Show Gist options
  • Save ananthakumaran/361874 to your computer and use it in GitHub Desktop.
Save ananthakumaran/361874 to your computer and use it in GitHub Desktop.
<distributionManagement>
<site>
<id>maven-demo</id>
<url>file:///${basedir}/../../../temp</url>
</site>
<repository>
<id>maven-demo</id>
<url>file:///${basedir}/../../../temp/maven2</url>
</repository>
</distributionManagement>
task :release do
temp = "../temp"
puts `git clone -l -s -b gh-pages . #{temp}`
if system("mvn release:perform")
puts `cd #{temp} && git add -A && git commit -m "releasing artifacts" && git push origin gh-pages`
puts `git push origin gh-pages`
puts " artifact released successfully "
else
puts " could not release artifact "
end
puts `rm -r #{temp}`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment