为什么我不能将我的存储库发布到 GitHub 页面?

Why can't I publish my repo to GitHub Pages?

我使用 Zurb Foundation 的 cli 创建了一个项目,位于此处:https://github.com/nataliecardot/zeus-hosting-setup. I built the files and Sass was transpiled to CSS. For some reason when I tried publishing from the master branch, only the HTML appears (resulting live site here)。

对于没有特殊构建过程的网站(只是简单的 HTML 和 CSS),我总是能够将我的网站设置为从 [= 下的回购设置中的主分支发布39=] 页面(虽然 this link says project repos are published from the gh-pages branch by default, whereas user/organization pages are built from the master branch by default, so I'm not sure why I'm able to do that). For sites that have a build process in place like projects scaffolded with Create React App, I normally use gh-pages package to deploy (I'm not even sure why that's necessary, though), but it didn't work with this project -- I think because a dist folder isn't created when I run foundation build. I asked about it in 并且有人说构建过程只是创建 CSS 文件并且 JS 文件可以按原样使用。(当你 运行 foundation build 与那个回购,它说 'starting Sass .... finished Sass').

我发布站点的解决方法是将 HTML 文件以及 HTML 文件中引用的 CSS 和 JS 文件复制到 another repo 中,并且我将网站设置为从 master 发布。它运作良好。

我不明白为什么我不能从原始存储库中执行相同的操作,因为其中包含相同的 CSS 和 HTML 引用的 JS 文件。这两个回购有什么区别?原始存储库中是否存在 node_modules folder/Sass files/a Gulp 文件,从而阻止它发布到 CSS 的母版?

此外,如果有人知道我如何从原始存储库发布,我将不胜感激。

node_moduleshttps://github.com/nataliecardot/zeus-hosting-setup/blob/master/.gitignore#L3 处被忽略,因为此文件夹通常很大,不应上传。

css 文件夹也一样,参见 https://github.com/nataliecardot/zeus-hosting-setup/blob/master/.gitignore#L5

请尝试迁移到为您的用例预配置的 ZURB 模板。

您的设置是基本设置,主要用于开发目的。