This repo generates the main site at polarweasel.org using a static site generator (Hugo).
The basic (human) workflow is: edit markdown, run Hugo to make sure it's happy, commit, push. Then, GitHub takes over: first, building the site with Hugo, and then using rsync to send only changed files to the web host.
There are some interesting details, like the web host's SSH credentials are kept as an encrypted secret in the repository. On the web host end, the credentials that GitHub uses to send the files are restricted to only the directory that serves the site.
Run the live-reload server:
hugo server -D --disableFastRender
Build the site, putting the generated site into the public
directory:
hugo
# Or, from the root of the repository, as the GitHub Action does:
hugo -s sewing-info/
This repo is licensed under the CC BY-NC-SA 4.0 license. For more details, read the Creative Commons description of the CC BY-NC-SA 4.0 license.