install dependencies before #22
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: Publish slides and notebooks | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Upgrade dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install libglpk-dev | |
- uses: r-lib/actions/setup-r@v2 | |
- name: Set up renv | |
uses: r-lib/actions/setup-renv@v2 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- run: | | |
pip install -r requirements.txt | |
sudo apt-get update | |
sudo apt-get install libglpk-dev | |
- name: Set up renv | |
uses: r-lib/actions/setup-renv@v2 | |
- name: Set up quarto | |
uses: quarto-dev/quarto-actions/setup@v2 | |
- run: | | |
quarto render --to html | |
quarto render resources/python.qmd --to ipynb | |
- name: Publish to GitHub Pages (and render) | |
uses: quarto-dev/quarto-actions/publish@v2 | |
with: | |
render: false | |
target: gh-pages |