Skip to content

Commit

Permalink
Build slides with gh actions
Browse files Browse the repository at this point in the history
Key points from trial and error:
- It seems that using a docker image is the recommended approach for pandoc.
- As such, I can't use my Makefile to build the slides, so need to duplicate
  the arguments in the action.
- The path to the css file needs to be relative to the output directory,
  rather than the directory you run the command from,
  so here it's `-css=mywhite.css`.
- The github-pages-deploy-action needs to deploy the root directory,
  because most of the site is built using jekyll, and if you just deploy the
  the slideshow directory, it deletes the rest of the site!
  • Loading branch information
gcapes committed May 17, 2024
1 parent 8b7c7b0 commit 2cee487
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 502 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,13 @@ jobs:
- run: make lesson-check-all
if: always()

- name: Build slides
uses: docker://pandoc/core:latest
with:
args: --to=revealjs --standalone -o slideshow/index.html --css=mywhite.css slideshow/slides.md

- name: Deploy slides
uses: JamesIves/[email protected]
with:
folder: .
Loading

0 comments on commit 2cee487

Please sign in to comment.