trying auto build #13
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: Build Site | |
on: | |
push: | |
branches: ["master"] | |
workflow_dispatch: | |
jobs: | |
build-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.11" | |
- uses: r-lib/actions/setup-r@v2 | |
- name: Install dependencies | |
run: | | |
python -m pip install -r requirements.txt | |
- uses: r-lib/actions/setup-renv@v2 | |
- name: Install Reticulate | |
run: Rscript -e 'renv::install("reticulate")' | |
- name: Set up quarto | |
uses: quarto-dev/quarto-actions/setup@v2 | |
- name: Build Research pages | |
run: | | |
python make_research_qmd.py --zotero_key ${{ secrets.ZOTERO_KEY }} | |
git config user.name 'bot' | |
git config user.email '...' | |
git add research/papers/* | |
git commit -m "gh workflow build [skip actions]" | |
git push | |
- name: Render and publish to gh pages | |
uses: quarto-dev/quarto-actions/publish@v2 | |
with: | |
target: gh-pages |