Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/pages-refresh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: pages refresh

# GitHub Pages only builds when the publishing branch changes, and
# `future: false` hides future-dated posts at build time. Request a build once a
# day so a post dated for today goes live without needing a push.
on:
schedule:
- cron: "15 6 * * *" # daily 06:15 UTC
workflow_dispatch:

permissions:
contents: read
pages: write

jobs:
rebuild:
runs-on: ubuntu-latest
steps:
- name: Request a GitHub Pages build
env:
GH_TOKEN: ${{ github.token }}
run: gh api --method POST "repos/${GITHUB_REPOSITORY}/pages/builds"
3 changes: 2 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ separate PRs. Do not mix them unless the user explicitly asks for one PR.
- The filename slug is the public URL (`/YYYY/MM/DD/<final-slug>.html`), so
choose the final name here rather than during drafting.
- `date` is the intended publication date, not the date the draft was written.
A future date schedules the post and is allowed.
A future date is allowed. `.github/workflows/pages-refresh.yml` rebuilds the
site daily, so the post appears within a day of that date without a push.
- Done when `bundle exec jekyll build` passes and the rendered URL, title,
date, and tags are correct.

Expand Down
Loading