Skip to content

Commit de44627

Browse files
cthoyttarleb
authored andcommitted
Enable compiling example docs with local changs
1 parent c141d11 commit de44627

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/example-doc.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
name: Compile example paper
22

33
on:
4-
# Build any branch
4+
# Build any branch where either the source data or templates changed
55
push:
66
paths:
77
- 'example/*'
8+
- 'data/templates/*'
89
pull_request:
910
paths:
1011
- 'example/*'
12+
- 'data/templates/*'
1113
# Build, but don't push on pull requests
1214

1315
jobs:
@@ -19,12 +21,20 @@ jobs:
1921
- name: Checkout
2022
uses: actions/checkout@v4
2123

24+
# Build the docker image locally to enable testing
25+
# updates to the templates. This workflow does not
26+
# push new images to dockerhub at all, hence why we
27+
# don't prefix this like openjournals/inara:<tag>
28+
- name: Build docker
29+
run: |
30+
docker build -t inara:edgiest .
31+
2232
- name: Build draft PDF
2333
run: >-
2434
docker run \
2535
--volume "$(pwd):/data" \
2636
--user "$(id -u):$(id -g)" \
27-
openjournals/inara:latest \
37+
inara:edgiest \
2838
-o "jats,contextpdf,crossref,preprint,tex,pdf" example/paper.md
2939
3040
- name: Upload draft PDF
@@ -44,7 +54,7 @@ jobs:
4454
docker run \
4555
--volume "$(pwd):/data" \
4656
--user "$(id -u):$(id -g)" \
47-
openjournals/inara:latest \
57+
inara:edgiest \
4858
-o "jats,contextpdf,crossref,preprint,tex,pdf" -p example/paper.md
4959
5060
- name: Upload production PDF

0 commit comments

Comments
 (0)