Skip to content

Commit

Permalink
Add docker build step
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Sep 17, 2024
1 parent e22eb55 commit 5048f0d
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/example-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,25 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build Docker
uses: docker/build-push-action@v6
with:
context: .
tags: openjournals/inara:edgiest

- name: Build draft PDF
run: >-
docker run \
--volume "$(pwd):/data" \
--user "$(id -u):$(id -g)" \
openjournals/inara:latest \
-o "jats,contextpdf,crossref,preprint,pdf" example/paper.md
openjournals/inara:edgiest \
-o "jats,contextpdf,crossref,preprint,tex,pdf" example/paper.md
- name: Upload draft PDF
uses: actions/upload-artifact@v3
Expand All @@ -45,7 +57,7 @@ jobs:
--volume "$(pwd):/data" \
--user "$(id -u):$(id -g)" \
openjournals/inara:latest \
-o "jats,contextpdf,crossref,preprint,pdf" -p example/paper.md
-o "jats,contextpdf,crossref,preprint,tex,pdf" -p example/paper.md
- name: Upload production PDF
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 5048f0d

Please sign in to comment.