Skip to content

Commit a8b58a5

Browse files
committed
fix: enable workflow
1 parent 60c02e3 commit a8b58a5

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,36 @@ name: Deploy Website
33
on:
44
push:
55
branches:
6-
- main
6+
- master
77

88
jobs:
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:

0 commit comments

Comments
 (0)