GitHub 配置
2025年8月12日小于 1 分钟
注册账号
创建仓库并填写仓库名称
- add .gitignore 配置可以随便选择一个模板
- 仓库可见性 (Choose visibility) 必须是 Public

获取账号令牌
- token name 填写一个对 token 备注即可用于区分 token
- Expiration 过期时间可以根据需求填写,长时间使用可以选择 No expiration
- Repository access 选择 only select repositories 选择这项并选择刚刚的仓库
- 选择基本仓库访问权限
- Commit statuses 权限 Read and write
- Contents 权限 Read and write

将获取到令牌填写到插件的 token 配置中

格式化链接配置说明
相关信息
默认 < 20MB 文件会使用 jsdelivr CDN 即使用值
https://fastly.jsdelivr.net/gh/{project}@{branch}/{uploadPath}
变量说明
相关信息
使用变量一定要用 {} 包裹 比如 {project}
变量 | 描述 |
---|---|
project | 仓库名 |
branch | 分支 |
uploadPath | 上传路径 |