我正在使用John Sundell's Publish框架开发一个静态站点。我已经让这个站点基本上正常工作了,我想把它部署到我的GitHub页面存储库。Publish包括一个名为.deploy(using: .gitHub("githubusername/githubusername.github.io", useSSH: false))
的发布步骤(明确地说,我确实使用了我的实际用户名)。但是,当我第一次运行它时,我收到了一个弹出的身份验证窗口,我输入了该窗口,并显示密码不正确。从那时起,每当我运行它时,它只会显示一个错误,并且不会提供任何密码窗口:
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页面的经验?任何提示/想法/建议都会非常有用。
发布于 2020-12-12 01:26:02
我已经使用内置的.gitHub
发布步骤在GutHub页面中部署了我的站点。
要部署到GitHub页,发布会将您的githubusername/githubusername.github.io
项目克隆到<YourProjcet>/.publish/GitDeploy
中。我是新的Swift和发布,但看起来你的错误,它无法创建GitDeploy
文件夹或克隆您的页面项目。
运行一次deploy
,在失败后转到上面的位置,看看哪里出了问题。如果在推送/获取GitHub页面存储库时出现问题,请手动解决该问题,然后再次尝试运行publish deploy
。
如果没有创建GitDeploy
文件夹,或许手动创建一个可以修复它。
https://stackoverflow.com/questions/64417030
复制相似问题