Skip to content

Commit c8d1cf1

Browse files
Cleanup and change action triggers
1 parent 8a9cad4 commit c8d1cf1

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/draft-pdf.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
1-
name: draft-paper
1+
name: Paper Draft
22
on:
33
workflow_dispatch:
44
pull_request:
5-
branches: [master]
5+
branches: [paper/**]
66
push:
7-
branches: [paper]
7+
branches: [master]
8+
paths: [paper/**]
89

910
jobs:
1011
paper:
1112
runs-on: ubuntu-latest
12-
name: Paper Draft
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v3
1616
- name: Build draft PDF
1717
uses: openjournals/openjournals-draft-action@master
1818
with:
1919
journal: joss
20-
# This should be the path to the paper within your repo.
2120
paper-path: paper/paper.md
2221
- name: Upload
23-
uses: actions/upload-artifact@v1
22+
uses: actions/upload-artifact@v3
2423
with:
2524
name: paper
26-
# This is the output path where Pandoc will write the compiled
27-
# PDF. Note, this should be the same directory as the input
28-
# paper.md
2925
path: paper/paper.pdf

0 commit comments

Comments
 (0)