Merge pull request #8 from anatawa12/add-ci-for-pull-request #3
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: Markdown to PDF (CI) | |
on: | |
pull_request: | |
paths: | |
- 'docs/**.md' | |
- '.github/workflows/markdownToPdfArtifacts.yml' | |
push: | |
paths: | |
- 'docs/**.md' | |
- '.github/workflows/markdownToPdfArtifacts.yml' | |
jobs: | |
converttopdf: | |
name: Build PDF | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Remove old PDFs | |
run: rm -rf pdfs | |
- name: Convert to PDF | |
uses: baileyjm02/markdown-to-pdf@v1 | |
with: | |
input_dir: docs | |
output_dir: pdfs | |
build_html: false | |
- name: Upload as Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pdfs | |
path: pdfs |