SukkaW / hexo-theme-suka

🎨Modern, powerful and simple theme for Hexo.
https://theme-suka.skk.moe
GNU General Public License v3.0
609 stars 49 forks source link

关于在GitLab上部署时.gitlab-ci.yml的内容 #143

Closed xiers819 closed 3 years ago

xiers819 commented 3 years ago

I certify that I have first consulted (check with "x")

我确认我已经查看了 (选择时请使用 "x" 取代方括号中的空格)


问题:请问如果要部署到GitLab(已在本地测试通过),.gitlab-ci.yml文件的内容该如何撰写呢?Hexo官网虽然有了说明,但suka特殊在于需要安装依赖,即"cd themes suka" "npm install --production"这两步该怎么实现呢?尝试过cd命令,但在deploy的时候报错:

16:39:13 | ERROR Package node-prismjs is not installed. 16:39:13 | ERROR Package qr-image is not installed. 16:39:13 | ERROR Please install the missing dependencies. 16:39:13 | ERROR You can enter suka-theme directory and run following commands: 16:39:13 | ERROR $ npm i --production 16:39:13 | ERROR $ yarn --production # If you prefer yarn.

实在无法解决,请求帮助,万分感谢😀

如果你遇到了运行 hexo g hexo s 时报错

If you get error when you are running hexo s hexo g.

Node.js and NPM Information

Node.js 和 NPM 的相关信息

Package dependencies Information

依赖包相关信息

Hexo version

Hexo 版本号

Hexo & Theme Configuration

站点配置文件和主题配置文件

Error Log

报错日志


如果你在浏览器中发现了问题

If you find something wrong when visiy your blog in browser.

Which device am I using, such as Android, iOS, Windows, Linux, MacOS

我使用的平台,如 Android、iOS、Windows、Linux、MacOS 等

Which brows am I using, such as Chrome 58.0.3029.110 (64-bit)

我使用的浏览器(如 Chrome 58.0.3029.110 64 位)

Dev Tool - Console.log

开发者面板的控制台日志

What you are expected and what you actually get

预期结果和你的实际结果


Demo site related with this issue, JSFiddle and gist are welcomed.

和 issue 有关的在线演示页面,推荐使用 JSFiddle 和 gist

Link(s) to source code or any usefull link(s)

相关源码或有用资源的入口