git submodule update --init --recursive
or
git submodule update --remote --merge
- Build static pages
hugo -d build
- Make sure git knows about your subtree (the subfolder with your site).
git add build && git commit -m "Algoclub release #1"
- Use subtree push to send it to the
build
branch on GitHub.
git subtree push --prefix dist origin gh-pages
or use simple script:
git pages-deploy path/to/your/site version