Monthly update of publications on webpage #9
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: Monthly update of publications on webpage | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 1 * *' # Executes at 00:00 on the 1st of every month | |
jobs: | |
run_python_and_render_qmd: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' # Use the version of Python you need | |
- name: Install dependencies | |
run: pip install -r publications/requirements.txt # Replace with your actual requirements | |
- name: Run Python script | |
run: python publications/publication_feed_parse.py | |
- name: Set up Quarto | |
uses: quarto-dev/quarto-actions/setup@v2 | |
- name: Render QMD file | |
run: quarto render publications.qmd --to html --output-dir docs |