Skip to content

Commit

Permalink
Update example-doc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Sep 11, 2024
1 parent 0f7cf54 commit 8e381f1
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/example-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ jobs:
build:
name: Example PDF
runs-on: ubuntu-latest
env:
FORMATS: 'jats,contextpdf,crossref,preprint'
PATHS: |
example/jats/paper.jats
example/paper.context.pdf
example/paper.crossref
example/paper.pdf
example/paper.preprint.tex

steps:
- name: Checkout
Expand All @@ -33,24 +25,34 @@ jobs:
--volume "$(pwd):/data" \
--user "$(id -u):$(id -g)" \
openjournals/inara:latest \
-o ${{ FORMATS }} example/paper.md
-o "jats,contextpdf,crossref,preprint" example/paper.md
- name: Upload draft PDF
uses: actions/upload-artifact@v3
with:
name: draft
path: ${{ PATHS }}
path: |
example/jats/paper.jats
example/paper.context.pdf
example/paper.crossref
example/paper.pdf
example/paper.preprint.tex
- name: Build production PDF
run: >-
docker run \
--volume "$(pwd):/data" \
--user "$(id -u):$(id -g)" \
openjournals/inara:latest \
-o ${{ FORMATS }} -p example/paper.md
-o "jats,contextpdf,crossref,preprint" -p example/paper.md
- name: Upload production PDF
uses: actions/upload-artifact@v3
with:
name: production
path: ${{ PATHS }}
path: |
example/jats/paper.jats
example/paper.context.pdf
example/paper.crossref
example/paper.pdf
example/paper.preprint.tex

0 comments on commit 8e381f1

Please sign in to comment.