Fix broken extensions from precommit running on all files #557
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: Render HTML dev on Push (Ubuntu) | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
build-ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Quarto | |
uses: quarto-dev/quarto-actions/setup@v2 | |
with: | |
version: "1.7.13" | |
tinytex: true | |
- name: Install TinyTeX | |
run: | | |
quarto install tinytex | |
echo "$HOME/.TinyTeX/bin/x86_64-linux" >> $GITHUB_PATH | |
- name: Setup R | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: '4.2' # Ensure you use R >= 4.0 | |
- name: Install R Packages | |
run: Rscript install_packages.R | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y \ | |
libpangoft2-1.0-0 \ | |
fonts-dejavu \ | |
fonts-freefont-ttf \ | |
libpango-1.0-0 \ | |
libpangocairo-1.0-0 \ | |
libcogl-pango-dev \ | |
pango1.0-tools \ | |
libcairo2 \ | |
gdk-pixbuf2.0-bin \ | |
libgdk-pixbuf2.0-dev \ | |
librsvg2-bin | |
- name: Install Inkscape | |
run: | | |
sudo add-apt-repository ppa:inkscape.dev/stable -y | |
sudo apt-get update | |
sudo apt-get install inkscape -y | |
- name: Render Quarto Project | |
uses: quarto-dev/quarto-actions/render@v2 | |
with: | |
to: html | |
- name: stage files | |
uses: cpina/[email protected] | |
env: | |
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} | |
with: | |
source-directory: '_book' | |
destination-github-username: 'harvard-edge' | |
destination-repository-name: 'cs249r_book_dev' | |
user-email: [email protected] | |
target-branch: 'main' | |
target-directory: 'docs' | |
commit-message: 'Push dev branch build' |