Skip to content

Commit 7ce8320

Browse files
committed
fix: repair GitHub deployment workflow and local deploy config
1 parent 7cab612 commit 7ce8320

2 files changed

Lines changed: 16 additions & 8 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,26 @@ jobs:
3636
npm install
3737
3838
- name: 生成静态文件 (Hexo Generate)
39-
run: hexo generate
39+
run: npx hexo generate
4040

4141
- name: 构建 Reverse App
4242
working-directory: ./reverse-app
4343
run: |
4444
npm install
4545
npm run build
4646
47-
- name: 将 Reverse App 移动到 public 目录
47+
- name: 构建 Commodity Crisis 游戏
48+
working-directory: ./commodity-crisis
4849
run: |
49-
mkdir -p public/reverse-app
50-
cp -r reverse-app/dist/* public/reverse-app/
50+
npm install
51+
npm run build
52+
53+
- name: 将游戏移动到 public 目录
54+
run: |
55+
mkdir -p public/games/reverse-app
56+
mkdir -p public/games/commodity-crisis
57+
cp -r reverse-app/dist/* public/games/reverse-app/
58+
cp -r commodity-crisis/dist/* public/games/commodity-crisis/
5159
5260
- name: 上传构建产物
5361
uses: actions/upload-pages-artifact@v3

_config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ ignore:
120120
theme: butterfly
121121
# Deployment
122122
## Docs: https://hexo.io/docs/one-command-deployment
123-
# deploy:
124-
# type: git
125-
# repo: git@github.com:RubberTale/RubberTale.github.io.git
126-
# branch: master
123+
deploy:
124+
type: git
125+
repo: git@github.com:RubberTale/RubberTale.github.io.git
126+
branch: master

0 commit comments

Comments
 (0)