From 25498bdfc077274fe080a6b1a135ecc7bd06c0dd Mon Sep 17 00:00:00 2001 From: GeorgeVassilakis Date: Sat, 7 Dec 2024 16:03:09 -0500 Subject: [PATCH] Automate PDF generation --- .github/workflows/draft-pdf.yml | 9 ++++++++- paper/paper.md | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/draft-pdf.yml b/.github/workflows/draft-pdf.yml index 797fb16..c1e7168 100644 --- a/.github/workflows/draft-pdf.yml +++ b/.github/workflows/draft-pdf.yml @@ -12,7 +12,6 @@ jobs: uses: openjournals/openjournals-draft-action@master with: journal: joss - # Specify the path to the Markdown file for the paper. paper-path: paper/paper.md - name: Upload PDF Artifact @@ -20,3 +19,11 @@ jobs: with: name: paper path: paper/paper.pdf + + - name: Commit and Push PDF + run: | + git config --local user.email "90641828+GeorgeVassilakis@users.noreply.github.com" + git config --local user.name "GeorgeVassilakis" + git add paper/paper.pdf + git commit -m "Update PDF" || echo "No changes to commit" + git push \ No newline at end of file diff --git a/paper/paper.md b/paper/paper.md index 747a60c..9f70253 100644 --- a/paper/paper.md +++ b/paper/paper.md @@ -25,7 +25,7 @@ authors: corresponding: false affiliation: 1 affiliations: - - name: Northeastern University, USA + - name: Department of Physics, Northeastern University, USA index: 1 date: 7 December 2024 bibliography: paper.bib