From 96a5a98805fbd028642fec16bda61c8e92e8b0bf Mon Sep 17 00:00:00 2001 From: Iosefa Percival Date: Fri, 20 Sep 2024 17:07:49 -1000 Subject: [PATCH] Add GitHub Actions workflow for JOSS PDF generation Introduced a GitHub Actions workflow to automate the generation of JOSS paper drafts. This workflow triggers on pushes to the relevant files and creates a draft PDF, which is then uploaded as an artifact. --- .github/workflows/paper.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/paper.yml diff --git a/.github/workflows/paper.yml b/.github/workflows/paper.yml new file mode 100644 index 0000000..d0b6e9d --- /dev/null +++ b/.github/workflows/paper.yml @@ -0,0 +1,27 @@ +name: JOSS PDF Generation + +on: + push: + paths: + - 'paper/**' + - '.github/workflows/paper.yml' + +jobs: + paper: + runs-on: ubuntu-latest + name: Paper Draft + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Build draft PDF + uses: openjournals/openjournals-draft-action@v1 + with: + journal: joss + paper-path: paper/paper.md + + - name: Upload PDF + uses: actions/upload-artifact@v4 + with: + name: paper + path: paper.pdf