Skip to content

Commit

Permalink
preview.pdf -> citation-preview.pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
garrison committed Sep 6, 2024
1 parent 991b559 commit 7249918
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/citation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
if [ -f "CITATION.bib" ]; then
arr=(${GITHUB_REPOSITORY//\// })
export REPO=${arr[1]}
cat <<- EOF > preview.tex
cat <<- EOF > citation-preview.tex
\documentclass[preprint,aps,physrev,notitlepage]{revtex4-2}
\usepackage{hyperref}
\begin{document}
Expand All @@ -47,22 +47,22 @@ jobs:
\bibliography{CITATION}
\end{document}
EOF
pdflatex preview
pdflatex citation-preview
fi
- name: Run BibTeX
run: |
if [ -f "CITATION.bib" ]; then
bibtex preview
bibtex citation-preview
fi
- name: Re-run LaTeX
run: |
if [ -f "CITATION.bib" ]; then
pdflatex preview
pdflatex preview
pdflatex citation-preview
pdflatex citation-preview
fi
- name: Upload PDF
if: always()
uses: actions/upload-artifact@v4
with:
name: preview.pdf
path: preview.pdf
name: citation-preview.pdf
path: citation-preview.pdf

0 comments on commit 7249918

Please sign in to comment.