karlfreeman / middleman-deploy

Deploy a middleman built site over rsync, ftp, stfp, or git (e.g. gh-pages on github).
MIT License
553 stars 124 forks source link

Feature Request: support a different trunk branch #142

Closed bunnymatic closed 2 years ago

bunnymatic commented 2 years ago

I've been using this tool for the past couple years and love it.

Though, I've also been starting to use main instead of master as my trunk branch on several other projects.

From what I can tell, mgd does not know what to do with a trunk branch that is not master.

It would be nice if one could specify the trunk branch name so that we could push to gh-pages from that branch.

I will likely look into putting together a PR but I also wonder about thoughts on this - or am I missing a config var that would support this?

bunnymatic commented 2 years ago

Nevermind. Operator error.

For anyone reading here, it seems like you can just deploy from anywhere. You just need to be on that branch when you deploy.