Schedule Deno Builds with GitHub Actions

I use a custom static site generator to publish this blog. It automatically deploys to Deno when I merge new articles into my Git repository's main branch. To support a "scheduled article" feature, I have configured a GitHub Actions scheduled workflow:

name: daily publish

    - cron: "0 0 * * *" # every day at midnight UTC

    name: deploy
    runs-on: ubuntu-latest
      id-token: write # Needed for auth with Deno Deploy
      contents: read # Needed to clone the repository

      - name: Clone repository
        uses: actions/checkout@v2

      - name: Build site
        shell: bash
        run: go run main.go build

      - name: Upload to Deno Deploy
        uses: denoland/deployctl@v1
          project: "croaky-blog"
          root: public

Every day at midnight UTC, GitHub runs the workflow, which executes a Go program to generate HTML, and deploys the site to Deno. Then, Deno serves HTML as a static file server.

When there are blog articles whose scheduled date matches the new UTC date, they are automatically published by this workflow.

Scheduled workflows are disabled automatically after 60 days of repository inactivity.