Skip to content

Add gh-pages install script, CIMD metadata, and docs publishing#2

Open
emsearcy wants to merge 1 commit into
mainfrom
lfxv2-2512-gh-pages-installer
Open

Add gh-pages install script, CIMD metadata, and docs publishing#2
emsearcy wants to merge 1 commit into
mainfrom
lfxv2-2512-gh-pages-installer

Conversation

@emsearcy

@emsearcy emsearcy commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Sets up the gh-pages branch to serve the curl-style installer, Auth0 CIMD client metadata, and auto-generated CLI reference docs, per LFXV2-2512.

  • Adds install.sh on gh-pages (root): detects OS/arch, downloads the matching release archive from GitHub Releases, verifies its checksum, and installs to /usr/local/bin (falling back to ~/.local/bin if not writable). Verified manually against the real v0.0.1 release, including the writable/non-writable install-dir fallback and a bad-version failure path.
  • Adds client-metadata.json on gh-pages: the CIMD (Client ID Metadata Document) for the LFX CLI's Auth0 Device Code client (this URL is the client_id). The corresponding auth0-terraform client is tracked separately in LFXV2-2513.
  • Adds a publish-docs job to .github/workflows/release-tag.yml that runs lfx docs and publishes docs/cli.md to gh-pages on every tagged release.
  • Documents the curl-style installer as the primary install method in the README (with go install as an alternative).
  • Documents the gh-pages branch and its maintenance in AGENTS.md.

Test plan

  • go build ./..., go vet ./..., gofmt -l . all clean
  • shellcheck and shfmt -d clean on install.sh
  • Ran install.sh against the real v0.0.1 release: default writable-dir path, non-writable-dir fallback to ~/.local/bin, and a bad-version 404 failure path
  • Confirmed install.sh and client-metadata.json are live at https://linuxfoundation.github.io/lfx-cli/
  • Verify publish-docs job succeeds on the next tagged release (can't be tested until then)

🤖 Generated with GitHub Copilot (via OpenCode)

- Add curl-style install.sh and Auth0 CIMD client-metadata.json on the new
  gh-pages branch, served via GitHub Pages.
- Add a publish-docs job to the release-tag workflow that generates
  Markdown CLI reference docs via 'lfx docs' and publishes them to
  gh-pages/docs/cli.md on every tagged release.
- Document the curl-style installer as the primary install method in the
  README, with go install as an alternative.
- Document the gh-pages branch and its maintenance in AGENTS.md.

Assisted-by: github-copilot:claude-sonnet-5
Signed-off-by: Eric Searcy <eric@linuxfoundation.org>
@emsearcy emsearcy requested a review from a team as a code owner July 15, 2026 18:39
Copilot AI review requested due to automatic review settings July 15, 2026 18:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Integrates the gh-pages installer, CIMD metadata, and generated CLI documentation into the project’s installation and release workflows.

Changes:

  • Makes the hosted installer the primary installation method.
  • Documents gh-pages assets and maintenance.
  • Publishes generated CLI docs after tagged releases.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
README.md Documents installer usage and alternatives.
AGENTS.md Documents gh-pages assets and maintenance.
.github/workflows/release-tag.yml Adds automated CLI documentation publishing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants