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
33on :
44 push :
55 branches :
6- - main
6+ - master
77
88jobs :
99 build-and-deploy :
1010 runs-on : ubuntu-latest
1111
1212 steps :
13- # 检出代码
13+ # Check out the code
1414 - name : Checkout code
1515 uses : actions/checkout@v3
1616
17- # 设置 Node.js 环境
17+ # Set up Node.js environment
1818 - name : Setup Node.js
1919 uses : actions/setup-node@v3
2020 with :
2121 node-version : ' lts/*'
2222
23- # 安装依赖
23+ # Install dependencies
2424 - name : Install dependencies
2525 run : |
2626 npm install
27+ npm install -g hexo-cli
2728 npm install hexo-theme-stellar
2829 npm audit fix
2930
30- # 生成静态文件
31+ # Generate static files
3132 - name : Generate static files
3233 run : hexo generate
3334
34- # 部署到 GitHub Pages
35+ # Deploy to GitHub Pages
3536 - name : Deploy to GitHub Pages
3637 uses : peaceiris/actions-gh-pages@v3
3738 with :
You can’t perform that action at this time.
0 commit comments