Skip to content

Publish docs with GITHUB_TOKEN instead of DOCUSAURUS_GH_TOKEN - #324

Merged
magiconair merged 1 commit into
mainfrom
ci/release-docs-github-token
Nov 17, 2026
Merged

magiconair merged 1 commit into
mainfrom
ci/release-docs-github-token

Conversation

@magiconair

Copy link
Copy Markdown
Contributor

🎯 Goal

Stop using the long-lived DOCUSAURUS_GH_TOKEN org secret for the docs release. The workflow only pushes to this repo's own gh-pages branch, so the built-in GITHUB_TOKEN is enough.

🛠 Implementation details

  • publish_dokka job gets permissions: contents: write. The workflow-level default stays contents: read.
  • peaceiris/actions-gh-pages uses secrets.GITHUB_TOKEN.
  • Pages is served from the gh-pages branch (legacy build), and pushes made with GITHUB_TOKEN still trigger that build.

After this merges and the next ReleaseDocs run on main succeeds, the org secret DOCUSAURUS_GH_TOKEN (visible only to this repo) will be deleted.

✍️ Explain examples

No code changes; CI only.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@magiconair
magiconair merged commit 71c975d into main Nov 17, 2026
3 checks passed
@magiconair
magiconair deleted the ci/release-docs-github-token branch November 17, 2026 09:48
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