diary of a lazy developer

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.

Publishing

The Action runs automatically every Saturday at 6:00 UTC. To trigger it manually:

  1. Go to Actions > Publish posts
  2. 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)

  1. On dev.to: Settings > Extensions > DEV Community API Keys > Generate API Key
  2. Secret: DEV_TO_API_KEY

Mastodon (public post with image)

  1. On mastodon.social: Settings > Development > New Application > select read, write and profile
  2. 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