Skip to content

Commit

Permalink
Merge pull request academicpages#2717 from dimitra-maoutsa/master
Browse files Browse the repository at this point in the history
Update for scrapping talk location through github actions
  • Loading branch information
rjzupkoii authored Dec 30, 2024
2 parents 15c16b8 + 26c37c5 commit 1acca92
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/ workflows /scrape_talks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Scrape Talk Locations

on:
push:
paths:
- 'talks/**'
- 'talkmap.ipynb'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9' # Specify the Python version you need

- name: Install dependencies
run: |
pip install jupyter pandas requests beautifulsoup4 geopy # Add other dependencies as needed
pip install getorg --upgrade
- name: Run Jupyter Notebook
run: |
jupyter nbconvert --to notebook --execute talkmap.ipynb --output talkmap_out.ipynb
- name: Commit changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Automated update of talk locations" || echo "No changes to commit"
git push
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ breadcrumbs : false # true, false (default)
words_per_minute : 160
future : true
read_more : "disabled" # if enabled, adds "Read more" links to excerpts
talkmap_link : false #change to true to add link to talkmap on talks page
talkmap_link : false #change to true to add link to talkmap on talks page
comments:
provider : # false (default), "disqus", "discourse", "facebook", "google-plus", "staticman", "custom"
disqus:
Expand Down

0 comments on commit 1acca92

Please sign in to comment.