Skip to content

Commit

Permalink
use GHA workflow recommended by joss
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed May 26, 2024
1 parent 30fb839 commit 80f152e
Show file tree
Hide file tree
Showing 6 changed files with 266 additions and 1,504 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/draft-pdf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# TODO: delete this file once the paper is published
on:
push:
branches: [main]
pull_request:
branches: [main]

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@master
with:
journal: joss
# This should be the path to the paper within your repo.
paper-path: paper/paper.md

- name: Upload
uses: actions/upload-artifact@v4
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: paper/paper.pdf
10 changes: 6 additions & 4 deletions paper/paper.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ affiliations:
name: Université du Québec à Montréal, Montréal, Canada

date: "`r Sys.Date()`"
bibliography: paper.bib

output:
rticles::joss_article:
includes:
in_header: preamble.tex
md_document:
variant: "markdown"
preserve_yaml: true
standalone: true
csl: apa.csl
bibliography: paper.bib
link-citations: yes
---

Expand Down
Loading

0 comments on commit 80f152e

Please sign in to comment.