Diary of a lazy developer
Tech posts from my projects. Each post lives in its project repo as POST.it.md and POST.en.md, and gets published here automatically by a GitHub Action.
- Theme: leonids (Jekyll)
- Automation: publish.yml
- Sources: sources.yml
Publishing
The Action runs automatically every Saturday at 6:00 UTC. To trigger it manually:
- Go to Actions > Publish posts
- Click “Run workflow” > “Run workflow”
Or from CLI:
gh workflow run publish.yml
Cross-posting
EN posts are cross-posted automatically. All secrets go in repo Settings > Secrets and variables > Actions > New repository secret.
dev.to (draft)
- On dev.to: Settings > Extensions > DEV Community API Keys > Generate API Key
- Secret:
DEV_TO_API_KEY
Mastodon (public post with image)
- On mastodon.social: Settings > Development > New Application > select read, write and profile
- Copy the token:
MASTODON_ACCESS_TOKEN
Development
docker compose up
If something is not updated,
rm -rf _site .jekyll-cache .jekyll-metadata
touch .jekyll-metadata; chmod 777 .jekyll-metadata
touch Gemfile.lock; chmod 777 Gemfile.lock
docker compose up
Not commit (there are also in the .gitignore file)
- _site
- .jekyll-cache
- .jekyll-metadata
- Gemfile.lock