GIT + Github integration

12 views
Skip to first unread message

Josh Suereth

unread,
Oct 3, 2009, 10:19:09 PM10/3/09
to simple-b...@googlegroups.com
Is there any integration into git for SBT?

My current project, I'd like to the following:


1) Create some temprorary directory (or re-use an existing one) that points to a "gh-pages" branch of my remote git repostiory
2) Generate the scaladocs for my project (and possibly sxr).
3) add/commit them to the gh-pages branch
4) remote push them to github pages.

I'd like to do this for a "publish-github-site" goal.....   Any Ideas on where to begin?

- Josh

Mark Harrah

unread,
Oct 4, 2009, 9:30:20 AM10/4/09
to simple-b...@googlegroups.com
Hey Josh,

No builtin support, but I'd be interested in using whatever you come
up with! I'd start with the Process API to run git.

http://code.google.com/p/simple-build-tool/wiki/Process

For a managed temporary directory (deleted on block completion),

FileUtilities.withTemporaryDirectory { dir =>
...
}

-Mark

Josh Suereth

unread,
Oct 4, 2009, 9:36:49 AM10/4/09
to simple-b...@googlegroups.com
I think I might also investigate the java git apis.  What I'm talking about might be tricky to get done with just processes.  Anyway, I'll let you know where my experiments take me (assuming I can find enough time).

Ray Racine

unread,
Oct 4, 2009, 9:49:58 AM10/4/09
to simple-b...@googlegroups.com
When there is no time for a deeper sbt integrations with a plugin etc...

A number of "quick" things can be done by simply creating an action which launches a shell script.  For example, I have deploy-testdb and deploy-code, etc... which runs some awk scripts, executes a number of scp copies of jars to target boxes.



On Sun, Oct 4, 2009 at 9:30 AM, Mark Harrah <dmha...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages