Update draft-pdf.yml #6
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: Compile JOSS Paper | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | |
sudo apt-get update && sudo apt-get install -y pandoc texlive texlive-xetex | |
- name: Compile PDF | |
run: | |
pandoc paper.md -o paper.pdf --bibliography=paper.bib --filter pandoc-citeproc | |
pandoc paper.md -o paper_JOSS.md --lua-filter=.github/normalize-metadata.lua | |
- name: Compile Final PDF | |
run: | |
pandoc paper_JOSS.md -o paper.pdf --pdf-engine=xelatex | |
- name: Upload PDF artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: joss-paper-pdf | |
path: paper.pdf | |