Merge pull request #289 from unfoldtoolbox/joss_paper #20
Workflow file for this run
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: 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 |