Gmeek Deploy Another Repo
Gmeek Deploy Another Repo
Gmeek 部署其他仓库
📦 原有: Gmeek.yml
原有 GitHub Actions ,通过 actions/upload-pages-artifact@v3 和 actions/deploy-pages@v4 自动化部署到本仓库的虚拟机上(注:不知这样理解是否正确)。
1 | name: build Gmeek |
🔧 .yml 修改需求
源仓库生成相关文件后,将静态页面 ./docs 下的文件推送到博客仓库分支 gh-pages 上,即网站部署在分支。
- 源仓库:
shenjuexiao/gmeek-source - 博客仓库:
shenjuexiao/gmeek-docs - 工作流 Deploy 增加 docs 下静态页面部署到博客仓库
gh-pages分支 - 使用
peaceiris/actions-gh-pages - 跨仓库使用 token:
${{ secrets.GMEEK_DOCS }}
❌ Error: HttpError: Not Found

注释掉本地的部署
1 | # 不需要配置 GitHub Pages |
1 | # 去掉源仓库的部署 |
1 | # 去掉源仓库的部署 |
🔑 Error: Action failed with "not found deploy key for tokens"

源仓库需要设置 token
- 创建 GitHub 个人访问令牌 PAT
Personal access tokens (classic)
GitHub 头像,Settings->Developer settings->Personal access tokens->Tokens (classic)
新建 Token,勾选权限:repo(全部仓库读写权限)。
复制生成的 Token(仅展示一次,丢失需重建)。 - 仓库配置
Repository secrets
仓库首页,Settings->Secrets and variables->Actions->New repository secret
Name:GH_TOKEN。
Value:粘贴上面的 PAT。
✅ 修改后 gmeek-docs.yml
1 | name: build Gmeek |




