Skip to content

[wiki] Publish merged docs to wiki master (#48)#50

Merged
coisa merged 3 commits intomainfrom
codex/48-wiki-publish-master
Apr 17, 2026
Merged

[wiki] Publish merged docs to wiki master (#48)#50
coisa merged 3 commits intomainfrom
codex/48-wiki-publish-master

Conversation

@coisa
Copy link
Copy Markdown
Contributor

@coisa coisa commented Apr 17, 2026

Summary

Corrects the follow-up publish failure from PR #49. The wiki repository publishes from master, not main, so the merged-PR publish job now fetches, switches, and pushes the configured wiki publish branch.

Changes

  • Adds WIKI_PUBLISH_BRANCH=master to the publish job.
  • Uses that branch when fetching the wiki publish ref, switching locally, and pushing the final wiki content.
  • Renames the publish step labels away from main so the workflow matches the actual wiki repository branch.

Testing

  • git diff --check passed.
  • ruby -e 'require "yaml"; YAML.load_file(".github/workflows/wiki.yml"); puts "YAML OK"' passed.
  • Verified .github/wiki remote exposes refs/heads/master and not refs/heads/main.
  • Commit hooks passed: GrumPHP composer_script, composer, phplint, jsonlint, and yamllint.

Closes #48

@github-actions github-actions Bot added bug Something isn't working labels Apr 17, 2026
Comment thread .github/workflows/wiki.yml Dismissed
@coisa coisa merged commit aeb4f9b into main Apr 17, 2026
10 checks passed
@coisa coisa deleted the codex/48-wiki-publish-master branch April 17, 2026 18:04
@coisa
Copy link
Copy Markdown
Contributor Author

coisa commented Apr 17, 2026

Added the preview-branch cleanup step after publishing to the wiki publish branch. It runs only after the publish push succeeds, so a failed publish keeps the pr-* branch available for debugging/retry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Released

Development

Successfully merging this pull request may close these issues.

Fix wiki workflow branch-protection publishing flow

2 participants