This file contains 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: Build & Publish Presentation PDF with reveal-md | |
on: | |
push: | |
paths: | |
- 'hydra_intro_slides.md' | |
jobs: | |
release: | |
name: Build & Publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies & Build Presentation | |
run: sudo npm install -g reveal-md puppeteer --unsafe-perm | |
- name: Build presentation pdf slides | |
run: DEBUG=reveal-md reveal-md hydra_intro_slides.md --print hydra_intro_slides.pdf | |
- name: Publish pdf slides | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . | |
git commit -m "rebuilt slide pdf" | |
git push | |
- name: Build presentation slides HTML | |
run: DEBUG=reveal-md reveal-md hydra_intro_slides.md --static _slides | |
# Push the site's HTML to github-pages | |
- name: GitHub Pages action | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./_slides |