Skip to content

Commit

Permalink
update for auto build
Browse files Browse the repository at this point in the history
  • Loading branch information
weekendfish committed Jan 20, 2025
1 parent b40c957 commit 69b6712
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
branches:
- master
- main
# 每天运行一次
# 每周一运行一次
schedule:
- cron: '0 12 * * *' # 每天中午12点运行
- cron: '0 12 * * 1'

jobs:
deploy:
Expand Down Expand Up @@ -40,9 +40,11 @@ jobs:
# - run: pip install -r .github/scripts/requirements.txt
- run: sudo apt-get install libcairo2-dev
# New steps start here
- name: Generate and update TOC, generate and config other things
- name: Generate documents
run: |
# python .github/scripts/workflows/build_documents.py
make clean
make build
- name: Commit changes
run: |
git add .
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
.PHONY: build clean

build:
make docs/新闻报道
make docs/学术研究
make docs/政策法规

docs/新闻报道:
mkdir -p docs/新闻报道
cd docs && python ../scripts/generate_index.py --config news_query.json --state .news_index_state.json
Expand Down

0 comments on commit 69b6712

Please sign in to comment.