Slides Webinar Alfaomega #263
This file contains hidden or 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: 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 [email protected] | |
| 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 |