vault backup: 2025-09-24 11:15:40
This commit is contained in:
29
07-Other/Node.js/Hexo/Hexo Gitlab部署.md
Normal file
29
07-Other/Node.js/Hexo/Hexo Gitlab部署.md
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# 前言
|
||||||
|
参考文章
|
||||||
|
- https://zgcr.gitlab.io/2019/02/05/shi-yong-gitlab-pages-zi-dong-bu-shu-hexo-bo-ke/
|
||||||
|
|
||||||
|
|
||||||
|
# Token
|
||||||
|
x9zFD_RX29ZnvyjpUNU1
|
||||||
|
# YAML
|
||||||
|
```
|
||||||
|
image: node:8.11.2
|
||||||
|
|
||||||
|
pages:
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- node_modules/
|
||||||
|
|
||||||
|
script:
|
||||||
|
- npm install hexo-cli -g
|
||||||
|
- npm install
|
||||||
|
- hexo clean
|
||||||
|
- hexo generate
|
||||||
|
- hexo deploy
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
```
|
||||||
|
|
Reference in New Issue
Block a user