Skip to content

docs: add a complete GitHub Actions job in docs/ci.md - #273

Merged
goldbarth merged 1 commit into
mainfrom
docs/ci
Sep 29, 2026
Merged

goldbarth merged 1 commit into
mainfrom
docs/ci

Conversation

@goldbarth

Copy link
Copy Markdown
Owner

Follows #271 and #269, whose token permissions and install settings the job uses.

  • Why: the README CI section showed one actions/checkout snippet. Everything else a CI job needs was left to the reader: installing a pinned version, passing the keys, the token permissions, where the written files go, and what happens to the draft.
  • A complete job to copy: triggered by a v* tag, full history (fetch-depth: 0), a pinned Chartula installed with the install script of that same release, secrets as environment variables, permissions of contents: write and pull-requests: read, and an artifact with every file the run writes.
  • Each step carries its reason and its consequence: a pinned version keeps a new release from changing the notes unannounced; without contents: write the model calls are paid before GitHub refuses; without the artifact the files vanish with the runner.
  • --tag and --repo go through env, not straight into run, so a tag name cannot inject shell code.
  • What happens to the draft: publishing it, the published-release case from A run with flags looks like a clean run, and a published release's notes are replaced unasked #249, and why CHANGELOG.md is committed through a pull request rather than by the job (the tag's checkout is not a branch). --no-publish with contents: read for a job that should leave GitHub alone.
  • Another provider: the step for OpenAI, with the model in chartula.yaml and only the endpoint and key in the job.
  • Alpine container: git goes in before the checkout, since actions/checkout fetches files without history when git is missing; libstdc++, curl and ca-certificates for the musl binary.
  • The README CI section becomes a sentence and a link, and the index gets a row.

Verified in Docker, no tokens spent: the job's steps in ubuntu:24.04 and alpine:latest: full clone, pinned install from the tag's install.sh, then chartula preview --tag v0.1.0-preview.3 --repo goldbarth/chartula with a dummy key. Both read 7 commits and 7 pull requests from GitHub; Ubuntu ends on the expected 401 at the first model call. The workflow parses as YAML, and every relative link and anchor resolves.

Not verified: a run inside GitHub Actions itself ($GITHUB_PATH, the built-in token's permissions, the artifact upload).

Tests: no test changed; documentation only.

@goldbarth
goldbarth merged commit 048df17 into main Sep 29, 2026
4 checks passed
@goldbarth
goldbarth deleted the docs/ci branch September 29, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant