|
a |
|
b/v3/.github/workflows/draft-pdf.yml |
|
|
1 |
on: [push] |
|
|
2 |
|
|
|
3 |
jobs: |
|
|
4 |
paper: |
|
|
5 |
runs-on: ubuntu-latest |
|
|
6 |
name: Paper Draft |
|
|
7 |
steps: |
|
|
8 |
- name: Checkout |
|
|
9 |
uses: actions/checkout@v2 |
|
|
10 |
- name: Build draft PDF |
|
|
11 |
uses: openjournals/openjournals-draft-action@master |
|
|
12 |
with: |
|
|
13 |
journal: joss |
|
|
14 |
# This should be the path to the paper within your repo. |
|
|
15 |
paper-path: paper/paper.md |
|
|
16 |
- name: Upload |
|
|
17 |
uses: actions/upload-artifact@v1 |
|
|
18 |
with: |
|
|
19 |
name: paper |
|
|
20 |
# This is the output path where Pandoc will write the compiled |
|
|
21 |
# PDF. Note, this should be the same directory as the input |
|
|
22 |
# paper.md |
|
|
23 |
path: paper/paper.pdf |
|
|
24 |
- name: save pdf to repo |
|
|
25 |
uses: stefanzweifel/git-auto-commit-action@v4 |
|
|
26 |
with: |
|
|
27 |
commit_message: Saved new PDF of paper |