Skip to content

Slides Webinar Alfaomega #210

Slides Webinar Alfaomega

Slides Webinar Alfaomega #210

Workflow file for this run

name: Slides Webinar Alfaomega
on:
push:
branches: [main]
paths:
- src/doc/**
pull_request:
branches: [main]
schedule:
- cron: "0 14 * * 5"
jobs:
build_latex:
runs-on: ubuntu-22.04
steps:
- name: Partial Clone
shell: bash
run: |
REPO="https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
git config --global user.email github-actions@github.com
git config --global user.name github-actions
git clone -q --filter=blob:none --no-checkout --depth=1 --sparse $REPO .
git sparse-checkout init --cone
git sparse-checkout set src/doc
git checkout
- uses: addnab/docker-run-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ghcr.io
image: ghcr.io/cpp-review-dune/introductory-review/aur:latest
options: |
-v ${{github.workspace}}:/work
shell: bash
run: |
yay --repo --needed --noconfirm --noprogressbar -Syuq
yay --repo --needed --noconfirm --noprogressbar -S cmake texlive-latexextra texlive-langspanish texlive-fontsrecommended texlive-luatex ttf-fira-code texlive-fontsextra texlive-plaingeneric texlive-bibtexextra biber texlive-binextra >/dev/null 2>&1
export PATH=/usr/bin/vendor_perl:$PATH
sudo chown -R builder:builder /work && cd /work && ./run.sh
mkdir -p public && mv build/doc/*.pdf public
mv public/doc_dune-webinar_tex_source.pdf public/slides.pdf
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: public