Reveal JS presentation (#427) #4
This file contains hidden or 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: reveal-pdf | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'reveal-js-presentation/*' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: Generate PDF | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Create "/slides" directory | |
| run: mkdir slides && sudo chmod 777 slides | |
| - name: Build PDF | |
| run: docker run --rm -t -v `pwd`:/slides -v ~:/home/user astefanutti/decktape reveal-js-presentation/index.html slides/reveal-js-presentation.pdf | |
| - name: Deploy | |
| uses: peaceiris/[email protected] | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./slides | |
| publish_branch: slides | |
| keep_files: true |