Skip to content

Commit

Permalink
Create code pngs (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarasa24 authored Nov 20, 2024
1 parent 29d998d commit 65375d3
Show file tree
Hide file tree
Showing 16 changed files with 192 additions and 149 deletions.
36 changes: 30 additions & 6 deletions .github/workflows/latex-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ on:
push:
tags:
- "v*"
pull_request:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
build:
compile-latex:
runs-on: ubuntu-latest

steps:
Expand All @@ -26,15 +30,35 @@ jobs:
texlive-latex-extra \
texlive-lang-czechslovak
- name: Clean previous build files
run: rm -f presentation/*.pdf presentation/*.aux presentation/*.log

- 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 release with compiled presentation
- name: Create artifacts
uses: actions/upload-artifact@v4
id: artifacts
with:
name: prezentace
path: presentation/prezentace.pdf

- name: Comment on PR
uses: thollander/actions-comment-pull-request@v3
with:
message: "Presentation compiled successfully. You can download it here [prezentace.pdf](${{ steps.artifacts.outputs.artifact-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: presentation/prezentace.pdf
files: prezentace.pdf
Binary file added presentation/obrazky/codes/carbon1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added presentation/obrazky/codes/carbon10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added presentation/obrazky/codes/carbon11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added presentation/obrazky/codes/carbon12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added presentation/obrazky/codes/carbon13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added presentation/obrazky/codes/carbon14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added presentation/obrazky/codes/carbon2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added presentation/obrazky/codes/carbon3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added presentation/obrazky/codes/carbon4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added presentation/obrazky/codes/carbon5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added presentation/obrazky/codes/carbon6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added presentation/obrazky/codes/carbon7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added presentation/obrazky/codes/carbon8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added presentation/obrazky/codes/carbon9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 65375d3

Please sign in to comment.