Skip to content

Commit 5adf588

Browse files
Add GitHub Actions workflow for PDF draft generation
1 parent db2e310 commit 5adf588

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/draft-pdf.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Draft PDF
2+
on: [push]
3+
4+
jobs:
5+
paper:
6+
runs-on: ubuntu-latest
7+
name: Paper Draft
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
- name: Build draft PDF
12+
uses: openjournals/openjournals-draft-action@master
13+
with:
14+
journal: joss
15+
# This should be the path to the paper within your repo.
16+
paper-path: paper.md
17+
- name: Upload
18+
uses: actions/upload-artifact@v4
19+
with:
20+
name: paper
21+
# This is the output path where Pandoc will write the compiled
22+
# PDF. Note, this should be the same directory as the input
23+
# paper.md
24+
path: paper.pdf
25+
- name: Commit PDF to repository
26+
uses: EndBug/add-and-commit@v9
27+
with:
28+
message: '(auto) Paper PDF Draft'
29+
# This should be the path to the paper within your repo.
30+
add: 'paper.pdf' # 'paper/*.pdf' to commit all PDFs in the paper directory

0 commit comments

Comments
 (0)