From 010195938dfc1a7a74d1c9b21e9551888c4469c7 Mon Sep 17 00:00:00 2001 From: Manthan Ankolekar Date: Sat, 10 Aug 2024 20:31:34 +0530 Subject: [PATCH] chore: Create markdown-pdf.yml --- .github/workflows/markdown-pdf.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/markdown-pdf.yml diff --git a/.github/workflows/markdown-pdf.yml b/.github/workflows/markdown-pdf.yml new file mode 100644 index 0000000..5c9b99c --- /dev/null +++ b/.github/workflows/markdown-pdf.yml @@ -0,0 +1,28 @@ +name: Generate PDF from README.md + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install Pandoc + run: sudo apt-get install -y pandoc + + - name: Convert README.md to PDF + run: pandoc README.md -o README.pdf + + - name: Upload PDF artifact + uses: actions/upload-artifact@v2 + with: + name: README-pdf + path: README.pdf +