Skip to content

Merge pull request #289 from unfoldtoolbox/joss_paper #20

Merge pull request #289 from unfoldtoolbox/joss_paper

Merge pull request #289 from unfoldtoolbox/joss_paper #20

Workflow file for this run

name: JOSS generation
on:
push:
paths:
- joss_paper/paper.md
- joss_paper/paper_UM.bib
- .github/workflows/joss_gen.yml
- joss_paper/plots/* # Trigger the paper generation workflow when the plots have changed (only works when the plots are pushed manually)
workflow_call:
# Apparently this only triggers the workflow if the workflow file is on the default branch
# (https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_run)
#workflow_run:
# workflows: [JOSS figure generation]
# types:
# - completed
jobs:
paper:
runs-on: ubuntu-latest
name: Paper Draft
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
#uses: actions/[email protected]
- name: Checkout latest commit
run: GITHUB_SHA=$(git rev-parse HEAD)
- name: Build draft PDF
uses: openjournals/openjournals-draft-action@master
with:
journal: joss
# This should be the path to the paper within your repo.
paper-path: joss_paper/paper.md
- name: Upload
uses: actions/upload-artifact@v3
with:
name: paper
# This is the output path where Pandoc will write the compiled
# PDF. Note, this should be the same directory as the input
# paper.md
path: joss_paper/paper.pdf