-
Notifications
You must be signed in to change notification settings - Fork 5
69 lines (59 loc) · 1.94 KB
/
update_website.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Update Group Website
on:
workflow_dispatch:
repository_dispatch:
types: [repo-push]
push:
branches:
- main
jobs:
update_website:
name: Updating website
runs-on: ubuntu-latest
steps:
- name: Clone groupwebsite_generator
uses: actions/checkout@v4
with:
path: groupwebsite_generator
- name: Clone group-data
uses: actions/checkout@v4
with:
repository: kerzendorf-group/group-data
path: group-data
token: ${{ secrets.TARDIS_BOT_TOKEN }}
- name: Clone kerzendorf-group.github.io
uses: actions/checkout@v4
with:
repository: kerzendorf-group/kerzendorf-group.github.io
path: kerzendorf-group.github.io
token: ${{ secrets.TARDIS_BOT_TOKEN }}
- name: Clone Research and News data
uses: actions/checkout@v4
with:
repository: tardis-sn/research_news
path: research_news
token: ${{ secrets.TARDIS_BOT_TOKEN }}
- name: Set up Python3
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Update pip and install Jupyter and Pandas
run: |
pip install --upgrade pip jupyter pandas
- name: Clear and setup directories inside kerzendorf-group.github.io
run: |
./notebooks/setup.sh
working-directory: ./groupwebsite_generator
- name: Run Notebooks
run: |
jupyter nbconvert --to python create_htmls.ipynb
python3 create_htmls.py
working-directory: ./groupwebsite_generator/notebooks
- name: Push Website
run: |
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add .
git commit --allow-empty -m "Push from website generator"
git push
working-directory: ./kerzendorf-group.github.io