Skip to content

Commit

Permalink
copy PDF to top-level directory
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Jun 2, 2024
1 parent c3a688d commit 8ceafc8
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/build-presentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,26 @@ jobs:
- uses: r-lib/actions/setup-r-dependencies@v2
with:
pak-version: devel
upgrade: 'TRUE'
extra-packages: |
quarto-dev/quarto-r
r-lib/sessioninfo
- name: Render slides
run: |
options(crayon.enabled = TRUE)
quarto::quarto_render("slides.qmd")
fs::file_copy("slides.html", "index.html", overwrite = TRUE)
callr::rscript("renderer.R")
shell: Rscript {0}

# - name: Build PDF using decktape
# run: |
# rm -rf slides
# mkdir slides && sudo chmod 777 slides
# sudo npm install -g --unsafe-perm=true --allow-root decktape
# docker run --rm -t -v `pwd`:/slides -v ~:/home/user astefanutti/decktape slides.html slides/slides.pdf
- name: Build PDF using decktape
run: |
rm -rf slides
mkdir slides && sudo chmod 777 slides
sudo npm install -g --unsafe-perm=true --allow-root decktape
docker run --rm -t -v `pwd`:/slides -v ~:/home/user astefanutti/decktape slides.html slides/slides.pdf
- name: Copy PDF slides to top-level directory
run: |
cp slides/slides.pdf . && rm -rf slides
- uses: stefanzweifel/git-auto-commit-action@v5
- uses: stefanzweifel/git-auto-commit-action@v5.0.1

0 comments on commit 8ceafc8

Please sign in to comment.