Update main.yml #9
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: Convert Markdown to PDF | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Pandoc | |
run: sudo apt-get update && sudo apt-get install -y pandoc texlive | |
- name: Concatenate and Convert Markdown to PDF | |
run: | | |
cat *.md > all_files.md | |
pandoc -s -V geometry:margin=2cm -o TASVS-v0.1.pdf all_files.md | |
- name: Upload PDF | |
uses: actions/upload-artifact@v2 | |
with: | |
name: document | |
path: TASVS-v0.1.pdf |