Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build multiple artifacts for the example document #83

Merged
merged 6 commits into from
Sep 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 28 additions & 4 deletions .github/workflows/example-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,42 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Build PDF
- name: Build draft PDF
run: >-
docker run \
--volume "$(pwd):/data" \
--user "$(id -u):$(id -g)" \
openjournals/inara:latest \
-o contextpdf,tex example/paper.md
-o "jats,contextpdf,crossref,preprint,tex,pdf" example/paper.md

- name: Upload PDF
- name: Upload draft PDF
uses: actions/upload-artifact@v3
with:
name: paper
name: draft
path: |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: we should find a way to return the name of the generated files, so we don't have to maintain this manually.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to do it with a ** glob pattern but that didn't work after a few tries so I went back to manually listing them

example/jats/paper.jats
example/paper.context.pdf
example/paper.crossref
example/paper.pdf
example/paper.tex
example/paper.preprint.tex

- name: Build production PDF
run: >-
docker run \
--volume "$(pwd):/data" \
--user "$(id -u):$(id -g)" \
openjournals/inara:latest \
-o "jats,contextpdf,crossref,preprint,tex,pdf" -p example/paper.md

- name: Upload production PDF
uses: actions/upload-artifact@v3
with:
name: production
path: |
example/jats/paper.jats
example/paper.context.pdf
example/paper.crossref
example/paper.pdf
example/paper.tex
example/paper.preprint.tex
Loading