Skip to content

Commit c6ab326

Browse files
committed
Add github actions
1 parent 112992e commit c6ab326

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/actions.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Gen site
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: checkout repo content
10+
uses: actions/checkout@v2
11+
12+
- name: setup python
13+
uses: actions/setup-python@v4
14+
with:
15+
python-version: '3.11'
16+
17+
- name: install python packages
18+
run: |
19+
cd generate_site/
20+
python -m pip install --upgrade pip
21+
pip install -r requirements.txt
22+
23+
- name: execute py script
24+
run: |
25+
cd generate_site/
26+
python generate.py
27+
28+
- name: Deploy
29+
uses: peaceiris/actions-gh-pages@v3
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: .

0 commit comments

Comments
 (0)