Here are some general guidelines based on my set up for github pages. (more info on github pages)
I have two folders. One for wintersmith, and one which is a git repository folder.
./myblog/ (wintersmith)
./personalblog/ (git repo)
On configuring your git repo, create ./personalblog/
via:
mkdir personalblog; cd personalblog
git init
git branch -m master gh-pages (this is important! see: https://help.github.com/articles/user-organization-and-project-pages#project-pages)
Create a repository of the same name on github. Then set the origin of the local repo. See here for more info.
Within ./myblog
I'd have a bash script (build.sh) with the following:
#!/bin/sh
# ./myblog/build.sh
# other build commands such as javascript or css minifiers
rm -r ./build/
wintersmith build
Then, I check and verify the wintersmith build. I verify using nodejs http-server. I'd have another bash script file for deployment:
#!/bin/sh
# ./myblog/deploy.sh
# rsync to efficiently sync ./myblog/build to ./personalblog/
# ignore deleteing .git folder and other stuff
rsync -rtvu --delete -f"- .git/" -f"- CNAME" -f"- .gitignore" -f"- README.md" ./build/ ../personalblog/
# change dir
cd ../personalblog/
# sync to github
git add -A
git commit -am "Commit on $(date)"
git push origin gh-pages
Hopefully these guidelines are helpful for you.