No description
- HTML 53.1%
- Sass 30.6%
- Python 11.5%
- CSS 2.3%
- Makefile 2.3%
- Other 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
Build and deploy / build-and-deploy (push) Successful in 3m21s
setup-go, setup-node and setup-bun resolve versions through api.github.com. Anonymously that is sixty requests an hour for the whole runner host, and the jobs started failing on it. GH_API_TOKEN is a read-only GitHub token held as a Forgejo secret. Where the secret is absent the input is empty and the action falls back to an anonymous request, exactly as before. |
||
| .github/workflows | ||
| archetypes | ||
| assets | ||
| content | ||
| layouts/partials | ||
| resources/_gen/assets/sass | ||
| themes/fmartingr | ||
| .gitignore | ||
| .hugo_build.lock | ||
| go.mod | ||
| go.sum | ||
| hugo.toml | ||
| lektor2hugo.py | ||
| Makefile | ||
| README.md | ||
fmartingr.com
Source code for my personal site hosted at fmartingr.com
Development
make server # local preview, including drafts and future-dated posts
make new-post # scaffold a post under content/blog/YYYY/MM/DD/
The theme transpiles Sass, so a Hugo extended build is required.
Deployment
.github/workflows/deploy.yml builds the site and rsyncs public/ to the web
host over SSH.
The build runs on every pull request against master, so a broken site is
caught before merge. The deploy step is skipped there and only runs for pushes
to master, the daily schedule (so posts dated in the future get published once
their date arrives), and manual dispatches.
The deploy rsyncs with --delete, so anything under SSH_PATH that the build
does not produce is removed from the server.
It needs the following Actions secrets:
| Secret | Description |
|---|---|
SSH_HOST |
Hostname of the web server |
SSH_USER |
SSH login user |
SSH_PATH |
Remote directory the site is copied into |
SSH_PRIVATE_KEY |
Private key contents for SSH_USER |