首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何将发布站点部署到GitHub页面

如何将发布站点部署到GitHub页面
EN

Stack Overflow用户
提问于 2020-10-19 02:42:16
回答 1查看 184关注 0票数 1

我正在使用John Sundell's Publish框架开发一个静态站点。我已经让这个站点基本上正常工作了,我想把它部署到我的GitHub页面存储库。Publish包括一个名为.deploy(using: .gitHub("githubusername/githubusername.github.io", useSSH: false))的发布步骤(明确地说,我确实使用了我的实际用户名)。但是,当我第一次运行它时,我收到了一个弹出的身份验证窗口,我输入了该窗口,并显示密码不正确。从那时起,每当我运行它时,它只会显示一个错误,并且不会提供任何密码窗口:

代码语言:javascript
运行
复制
publish deploy
Fatal error: Error raised at top level: Publish encountered an error:
[step] Deploy using Git (https://github.com/githubusername/githubusername.github.io.git)
[path] GitDeploy
[info] Failed to create folder: file /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-1103.8.25.8/swift/stdlib/public/core/ErrorType.swift, line 200
/bin/bash: line 1:  9577 Illegal instruction: 4  swift run RyanBudishSite --deploy
❌ ShellOut encountered an error
Status code: 132
Message: "Fatal error: Error raised at top level: Publish encountered an error:
[step] Deploy using Git (https://github.com/githubusername/githubusername.github.io.git)
[path] GitDeploy
[info] Failed to create folder: file /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-1103.8.25.8/swift/stdlib/public/core/ErrorType.swift, line 200
/bin/bash: line 1:  9577 Illegal instruction: 4  swift run RyanBudishSite --deploy"
Output: ""

有没有人有发布到部署到GitHub页面的经验?任何提示/想法/建议都会非常有用。

EN

Stack Overflow用户

发布于 2020-12-12 01:26:02

我已经使用内置的.gitHub发布步骤在GutHub页面中部署了我的站点。

要部署到GitHub页,发布会将您的githubusername/githubusername.github.io项目克隆到<YourProjcet>/.publish/GitDeploy中。我是新的Swift和发布,但看起来你的错误,它无法创建GitDeploy文件夹或克隆您的页面项目。

运行一次deploy,在失败后转到上面的位置,看看哪里出了问题。如果在推送/获取GitHub页面存储库时出现问题,请手动解决该问题,然后再次尝试运行publish deploy

如果没有创建GitDeploy文件夹,或许手动创建一个可以修复它。

票数 0
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64417030

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档