What's a good approach to handling software releases on github. My repo https://github.com/wheresrhys/jQuery-flickbook contains all the src and build files together with a built (minified) version of the javascript.
But I would also like it to, once I advance to the next version release, to include a e.g. jquery.flickbook-0.5.min.js file into a releases directory. To what degree can this be automated (using ant and git branches and tags), or is it something I will have to manually carry out?
This is how I'd do it (note: this makes the assumption that master
is your "reference" branch):
x.y-release
on master
and check it out (git checkout -b x.y-release master
);x.y
(git tag x.y
-- you want to have a look at the manpage, you can create "tag objects" too);git push theremote --tags
, or even git push theremote x.y
);git checkout master
);git branch -D x.y-release
) if you want to.This means the minified version never makes its way into master
but does end up in the tag, which means everything is there, as a tag is a refspec just as any branch is.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With