Skip to content

Commit 4a12fd5

Browse files
authored
Merge pull request academicpages#2717 from dimitra-maoutsa/master
Update for scrapping talk location through github actions
2 parents 46dc8b4 + 7cd59e2 commit 4a12fd5

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/ workflows /scrape_talks.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Scrape Talk Locations
2+
3+
on:
4+
push:
5+
paths:
6+
- 'talks/**'
7+
- 'talkmap.ipynb'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: '3.9' # Specify the Python version you need
20+
21+
- name: Install dependencies
22+
run: |
23+
pip install jupyter pandas requests beautifulsoup4 geopy # Add other dependencies as needed
24+
pip install getorg --upgrade
25+
26+
- name: Run Jupyter Notebook
27+
run: |
28+
jupyter nbconvert --to notebook --execute talkmap.ipynb --output talkmap_out.ipynb
29+
30+
- name: Commit changes
31+
run: |
32+
git config user.name "github-actions[bot]"
33+
git config user.email "github-actions[bot]@users.noreply.github.com"
34+
git add .
35+
git commit -m "Automated update of talk locations" || echo "No changes to commit"
36+
git push

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ breadcrumbs : false # true, false (default)
8989
words_per_minute : 160
9090
future : true
9191
read_more : "disabled" # if enabled, adds "Read more" links to excerpts
92-
talkmap_link : false #change to true to add link to talkmap on talks page
92+
talkmap_link : false #change to true to add link to talkmap on talks page
9393
comments:
9494
provider : # false (default), "disqus", "discourse", "facebook", "google-plus", "staticman", "custom"
9595
disqus:

0 commit comments

Comments
 (0)