Move docs deployment to Vercel and releases - #1
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates One CLI’s public distribution and documentation hosting by moving the docs site to Vercel, switching installer/update checks to GitHub Releases, and standardizing public URLs/links on the new 1cli.dev domain and 1cli-team/one-cli repository.
Changes:
- Add Vercel deployment configuration (repo root +
apps/docs) and adjust docs CI to build-only (no OSS sync). - Migrate
install.shand CLI update checks from/dl/*endpoints to GitHub Releases (/releases/latestredirect + release assets). - Update README, templates, skills, and docs content to use
https://1cli.devandhttps://github.com/1cli-team/one-cli.
Reviewed changes
Copilot reviewed 47 out of 47 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| vercel.json | Adds repo-root Vercel config to build/export docs and set headers for install.sh. |
| apps/docs/vercel.json | Adds apps/docs-root Vercel config mirroring the static export build and install.sh headers. |
| .github/workflows/docs.yml | Converts docs workflow to a build-only confidence check for PRs/pushes (Vercel handles prod deploy). |
| .github/workflows/cli.yml | Removes OSS mirroring and refines dispatch behavior for releasing via GoReleaser/GitHub Releases. |
| .goreleaser.yaml | Updates release owner and documentation comments to match GitHub Releases as the install source. |
| apps/docs/next.config.mjs | Updates comments to reflect Vercel static hosting assumptions. |
| apps/docs/public/install.sh | Switches “latest version” resolution and downloads to GitHub Releases redirect + release assets; updates env vars. |
| packages/cli/internal/updatecheck/checker.go | Uses GitHub Releases “latest” redirect as version source and extracts tag from redirected path. |
| packages/cli/internal/updatecheck/checker_test.go | Adds test coverage for GitHub-style redirect behavior. |
| packages/cli/internal/updatecheck/notify.go | Updates the suggested install command to https://1cli.dev/install.sh. |
| packages/cli/internal/updatecheck/semver.go | Updates comments to reflect “latest release” endpoint behavior. |
| packages/cli/internal/updatecheck/background.go | Updates comments describing timing assumptions with the new endpoint. |
| packages/cli/internal/cli/install_sh_test.go | Updates comments to reflect docs-site distribution + GitHub Releases dependency. |
| README.md | Updates install/docs/release links to 1cli.dev and 1cli-team/one-cli. |
| CONTRIBUTING.md | Updates repo/docs links and documents Vercel deployment settings. |
| CLAUDE.md | Updates docs hosting reference to 1cli.dev. |
| apps/docs/src/app/layout.tsx | Updates metadataBase to https://1cli.dev. |
| apps/docs/src/app/sitemap.ts | Updates sitemap base URL to https://1cli.dev. |
| apps/docs/src/app/layout.config.tsx | Updates changelog URL to the new GitHub org. |
| apps/docs/src/components/site-top-nav.tsx | Updates GitHub/changelog links to the new org. |
| apps/docs/src/components/template-examples-nav.tsx | Updates GitHub/changelog links to the new org. |
| apps/docs/src/app/docs/docs-toc.tsx | Updates “Edit on GitHub” and issues links to the new org. |
| apps/docs/src/app/[lang]/docs/[[...slug]]/page.tsx | Updates “Edit on GitHub” link to the new org. |
| apps/docs/src/app/[lang]/tutorials/[[...slug]]/page.tsx | Updates “Edit on GitHub” link to the new org. |
| apps/docs/src/app/[lang]/blog/[slug]/page.tsx | Updates “Edit on GitHub” link to the new org. |
| apps/docs/src/app/(home)/home-page.tsx | Updates install command string and GitHub/changelog/release links to the new domain/org. |
| apps/docs/src/app/(home)/home-template-preview.tsx | Updates displayed domain string to 1cli.dev. |
| apps/docs/content/docs/zh/installation.md | Updates installer/docs text to describe GitHub Releases “latest” redirect + assets. |
| apps/docs/content/docs/en/installation.md | Same as above for English installation docs. |
| apps/docs/content/docs/zh/skills.md | Updates repo links for skill references to the new org. |
| apps/docs/content/docs/en/skills.md | Same as above for English skills doc. |
| apps/docs/content/tutorials/zh/templates.mdx | Updates templates tutorial link to 1cli.dev. |
| apps/docs/content/tutorials/en/templates.mdx | Same as above for English templates tutorial. |
| apps/docs/content/tutorials/zh/first-workspace.mdx | Updates install command to https://1cli.dev/install.sh. |
| apps/docs/content/tutorials/en/first-workspace.mdx | Same as above for English first-workspace tutorial. |
| apps/docs/content/tutorials/zh/env-multi-env.mdx | Updates CI snippet install command to https://1cli.dev/install.sh. |
| apps/docs/content/tutorials/en/env-multi-env.mdx | Same as above for English env-multi-env tutorial. |
| apps/docs/content/tutorials/zh/json-output-error-codes.mdx | Updates CI snippet install command to https://1cli.dev/install.sh. |
| apps/docs/content/tutorials/en/json-output-error-codes.mdx | Same as above for English json-output tutorial. |
| packages/skills/one-cli/SKILL.md | Updates install instructions and repo/error-code links to the new domain/org. |
| packages/skills/one-migrate/SKILL.md | Updates install instructions and repo/error-code links to the new domain/org. |
| packages/templates/starlight-docs/src/content/docs/index.mdx | Updates docs site link to 1cli.dev. |
| packages/templates/react-spa/src/pages/Home.tsx | Updates quick-start docs link to 1cli.dev. |
| packages/templates/nextjs-app/src/app/page.tsx | Updates quick-start docs link to 1cli.dev. |
| packages/templates/expo-mobile/src/app/(tabs)/index.tsx | Updates quick-start docs link to 1cli.dev. |
| packages/templates/electron-app/apps/ui/src/nodes/HomePage/index.tsx | Updates quick-start docs link to 1cli.dev. |
| packages/templates/astro-site/src/components/Welcome.astro | Updates quick-start docs link to 1cli.dev. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - [Command reference](https://one.torchstellar.com/docs/reference/cli-overview/) | ||
| - [Error codes](https://one.torchstellar.com/docs/reference/error-codes/) | ||
| - [Installation](https://1cli.dev/docs/installation/) | ||
| - [First project tutorial](https://1cli.dev/tutorials/first-workspace/) |
Comment on lines
+16
to
+18
| // latestEndpoint is the source of truth. GitHub redirects this URL to | ||
| // /releases/tag/vX.Y.Z, which avoids the unauthenticated API rate limit. | ||
| const latestEndpoint = "https://github.com/1cli-team/one-cli/releases/latest" |
| err "failed to fetch /dl/latest. Set ONE_VERSION=vX.Y.Z to bypass." | ||
| info "resolving latest version from $ONE_LATEST_URL" | ||
| local effective_url | ||
| if ! effective_url=$(curl -fsSL --retry 3 -o /dev/null -w '%{url_effective}' "$ONE_LATEST_URL" 2>/dev/null); then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification