site #489
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: site | |
on: | |
push: | |
branches: [ master ] | |
schedule: | |
# minute hour monthday month weekday, so this runs every Friday at 20:15 UTC | |
- cron: "15 20 * * 5" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests beautifulsoup4 | |
- name: Generate publication list | |
run: | | |
cd publications | |
python generate_publist.py | |
- name: Deploy website | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: . | |
enable_jekyll: true | |
full_commit_message: "deploy ${{ github.sha }}: ${{ github.event.head_commit.message }}" |