Merge pull request #1 from Jasery/develop

feat: 更新环境变量配置,优先使用 GITHUB_TOKEN 以支持 GitHub Actions
This commit is contained in:
zhanggy authored and GitHub committed 2025-10-29 11:07:27 +08:00
commit 22b04dc0f7
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
# GitHub Personal Access Token for private repository access
# Required for auto-updates from private repositories
GH_TOKEN=
GH_TOKEN=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
# For private repositories, you might also need:
# GITHUB_TOKEN= # Alternative token name that some tools might use
+1 -1
View File
@@ -16,7 +16,7 @@ const baseConfig = {
owner: 'Jasery',
repo: 'gdt-tool',
releaseType: 'release',
token: process.env.GH_TOKEN || '' // 可选:从环境变量获取 GitHub Token,私有仓库必需
token: process.env.GITHUB_TOKEN || process.env.GH_TOKEN || '' // 优先使用 GITHUB_TOKEN(GitHub Actions 自动提供)
}
],
artifactName: '${productName} ${version}_${arch}.${ext}',