feat: 更新环境变量配置,优先使用 GITHUB_TOKEN 以支持 GitHub Actions
This commit is contained in:
1 parent
7d536d65f1
commit
cb8b3876c0
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -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
|
||||
# GITHUB_TOKEN= # Alternative token name that some tools might use
|
||||
@@ -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}',
|
||||
|
||||
Reference in new issue
Block a user