Add workflow to generate, test, and publish presentation PDF - #4
Conversation
Agent-Logs-Url: https://github.com/swxsoc/swxsoc-presentation/sessions/bd327c14-eed1-4a40-a890-44ca711d3c4b Co-authored-by: ehsteve <739053+ehsteve@users.noreply.github.com>
|
@copilot is it possible to add a test? |
Agent-Logs-Url: https://github.com/swxsoc/swxsoc-presentation/sessions/5a17fd86-97b5-45fe-ad9c-ed7cb3d174b3 Co-authored-by: ehsteve <739053+ehsteve@users.noreply.github.com>
Added a workflow-level test in commit |
There was a problem hiding this comment.
Pull request overview
Adds a GitHub Actions workflow to automatically render the Reveal.js deck to a PDF on CI, validate the output, and (on published releases) upload the PDF as a release asset. This fits the repo’s GitHub Pages-oriented deck by providing a consistent, automated “export to PDF” artifact for releases.
Changes:
- Introduces a
release-pdfworkflow that runs on PRs tomainand onrelease.published. - Generates
swxsoc-presentation.pdfusing Puppeteer againstindex.html?print-pdf. - Validates the generated PDF is non-empty and uploads it to the GitHub release (release events only).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: ehsteve <739053+ehsteve@users.noreply.github.com>
…swxsoc/swxsoc-presentation into copilot/add-pdf-output-workflow
|
Ran this locally and produced this file |
This PR adds automated PDF output for releases by introducing a GitHub Actions workflow that renders the Reveal.js deck and attaches the PDF to the release, and adds workflow-level test coverage on pull requests.
Workflow trigger + permissions
.github/workflows/release-pdf.ymlto run onrelease.publishedand on pull requests targetingmain.contents: writefor release asset upload.PDF generation on runner
puppeteer.index.html?print-pdfand exportswxsoc-presentation.pdf.Workflow-level test
test -s swxsoc-presentation.pdf) to ensure PDF generation succeeds and produces a non-empty file on CI runs.Release asset publishing
swxsoc-presentation.pdfto the published release via GitHub CLI (gh release upload ... --clobber), gated to release events only.