File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -3,35 +3,36 @@ name: Deploy Website
3
3
on :
4
4
push :
5
5
branches :
6
- - main
6
+ - master
7
7
8
8
jobs :
9
9
build-and-deploy :
10
10
runs-on : ubuntu-latest
11
11
12
12
steps :
13
- # 检出代码
13
+ # Check out the code
14
14
- name : Checkout code
15
15
uses : actions/checkout@v3
16
16
17
- # 设置 Node.js 环境
17
+ # Set up Node.js environment
18
18
- name : Setup Node.js
19
19
uses : actions/setup-node@v3
20
20
with :
21
21
node-version : ' lts/*'
22
22
23
- # 安装依赖
23
+ # Install dependencies
24
24
- name : Install dependencies
25
25
run : |
26
26
npm install
27
+ npm install -g hexo-cli
27
28
npm install hexo-theme-stellar
28
29
npm audit fix
29
30
30
- # 生成静态文件
31
+ # Generate static files
31
32
- name : Generate static files
32
33
run : hexo generate
33
34
34
- # 部署到 GitHub Pages
35
+ # Deploy to GitHub Pages
35
36
- name : Deploy to GitHub Pages
36
37
uses : peaceiris/actions-gh-pages@v3
37
38
with :
You can’t perform that action at this time.
0 commit comments