Release v0.10.1: standardize main branch, rename repo to seal-use, and optimize release pipeline
This commit is contained in:
1 parent
756202bf20
commit
8e9141953d
14 files changed
+54
-40
No files matched your search
@@ -9,7 +9,7 @@ import { printJson } from "../printer.js";
|
||||
import { STATE_DIR } from "./service.js";
|
||||
import type { CliRuntime } from "../types.js";
|
||||
|
||||
const DEFAULT_GITHUB_REPO = "yunyingk/seal-home";
|
||||
const DEFAULT_GITHUB_REPO = "yunyingk/seal-use";
|
||||
const LEGACY_GITHUB_REPO = "yunyingk/seal-home";
|
||||
const UPDATE_URL_ENV = "SEAL_USE_UPDATE_URL";
|
||||
const LEGACY_UPDATE_URL_ENV = "SEAL_HOME_UPDATE_URL";
|
||||
@@ -316,7 +316,7 @@ async function fetchGitHubReleases(repo: string, limit = 20): Promise<GitHubRele
|
||||
};
|
||||
|
||||
const urls = [
|
||||
`https://git.ying-qing.cn/api/v1/repos/gitea/seal-home/releases?per_page=${limit}`,
|
||||
`https://git.ying-qing.cn/api/v1/repos/gitea/seal-use/releases?per_page=${limit}`,
|
||||
`https://git.ying-qing.cn/api/v1/repos/gitea/seal-home/releases?per_page=${limit}`,
|
||||
`https://api.github.com/repos/${repo}/releases?per_page=${limit}`
|
||||
];
|
||||
@@ -381,13 +381,13 @@ async function fetchGitHubRelease(repo: string, targetVersion?: string): Promise
|
||||
|
||||
const urls = tag
|
||||
? [
|
||||
`https://git.ying-qing.cn/api/v1/repos/gitea/seal-home/releases/tags/${tag}`,
|
||||
`https://git.ying-qing.cn/api/v1/repos/gitea/seal-use/releases/tags/${tag}`,
|
||||
`https://git.ying-qing.cn/api/v1/repos/gitea/seal-home/releases/tags/${tag}`,
|
||||
`https://api.github.com/repos/${repo}/releases/tags/${tag}`,
|
||||
...(repo !== LEGACY_GITHUB_REPO ? [`https://api.github.com/repos/${LEGACY_GITHUB_REPO}/releases/tags/${tag}`] : [])
|
||||
]
|
||||
: [
|
||||
`https://git.ying-qing.cn/api/v1/repos/gitea/seal-home/releases/latest`,
|
||||
`https://git.ying-qing.cn/api/v1/repos/gitea/seal-use/releases/latest`,
|
||||
`https://git.ying-qing.cn/api/v1/repos/gitea/seal-home/releases/latest`,
|
||||
`https://api.github.com/repos/${repo}/releases/latest`,
|
||||
...(repo !== LEGACY_GITHUB_REPO ? [`https://api.github.com/repos/${LEGACY_GITHUB_REPO}/releases/latest`] : [])
|
||||
|
||||
Reference in new issue
Block a user