Skip to content

Commit 1c178ae

Browse files
committed
update jekyll.yml
1 parent 735ac36 commit 1c178ae

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/jekyll.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,15 @@ jobs:
3333
steps:
3434
- name: Checkout
3535
uses: actions/checkout@v4
36-
- name: Copy articles to web directory
37-
run: mkdir -pv ./web/_posts/zh/ && cp -r ./result/articles/* ./web/_posts/zh/
36+
- name: Setup Python
37+
uses: actions/setup-python@v4
38+
with:
39+
python-version: '3.10' # 安装 Python 3.10(可根据需求调整版本)
40+
- name: gen articles and copy data to web directory
41+
run: |
42+
python3 ./gen_articles.py
43+
mkdir -pv ./web/imgs/word_imgs/ && cp -r ./result/word_imgs/* ./web/imgs/word_imgs/
44+
mkdir -pv ./web/_posts/zh/ && cp -r ./result/articles/* ./web/_posts/zh/
3845
- name: Setup Ruby
3946
uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4
4047
with:

0 commit comments

Comments
 (0)