Skip to content

Create code pngs

Create code pngs #17

Workflow file for this run

name: Build Beamer Presentation
on:
push:
tags:
- "v*"
pull_request:
branches:
- main
paths:
- "presentation/**"
permissions:
contents: write
pull-requests: write
jobs:
compile-latex:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Install minimal TeX Live packages
run: |
sudo apt-get update -y
sudo apt-get install -y \
texlive-latex-base \
texlive-latex-recommended \
texlive-fonts-recommended \
texlive-latex-extra \
texlive-lang-czechslovak
- name: Compile Beamer Presentation
run: |
pdflatex -file-line-error -output-directory=presentation presentation/prezentace.tex
pdflatex -file-line-error -output-directory=presentation presentation/prezentace.tex
- name: Create artifacts
uses: actions/upload-artifact@v4
with:
name: prezentace
path: presentation/prezentace.pdf
- name: Comment on PR
uses: unsplash/comment-on-pr@v1
with:
msg: "Presentation compiled successfully. You can download it here [prezentace.pdf](${{ outputs.artifacts_url }})."

Check failure on line 49 in .github/workflows/latex-build.yml

View workflow run for this annotation

GitHub Actions / Build Beamer Presentation

Invalid workflow file

The workflow is not valid. .github/workflows/latex-build.yml (Line: 49, Col: 16): Unrecognized named-value: 'outputs'. Located at position 1 within expression: outputs.artifacts_url
if: github.event_name == 'pull_request'
create-release:
runs-on: ubuntu-latest
needs: compile-latex
if: github.ref == 'refs/tags/v*'
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: prezentace
- name: Create release with compiled presentation (tag push only)
uses: softprops/action-gh-release@v2
with:
files: prezentace.pdf