johanphilips / sorse-zenodo-upload

Apache License 2.0
0 stars 0 forks source link

add PDF to Zenodo #3

Closed johanphilips closed 3 years ago

johanphilips commented 4 years ago

Currently the original .md is added, should be changed to generated PDF

Chilipp commented 4 years ago

Yes, and the PDF has to be rebuilt with the added doi in the Frontmatter prior to publishing it on zenodo. It's a bit of an overkill, but one option would be to rebuild it with docker and the docker file that @vsoch has in her repository. What do you think?

johanphilips commented 3 years ago

that would work, but if we want to make it a one step process, I will have to call docker run from within python for that :-p Do you have a link for that repo? Got it, the openbases repo :-)

johanphilips commented 3 years ago

@Chilipp Could you point me to the script that you currently use to build those pdfs? Is the latex template in the ci folder?

Chilipp commented 3 years ago

hey @johanphilips, I don't have a particular script for this. We use it within the github workflow, but when I want to build a PDF locally, I usually do it like this:

docker build -t rseng/pdf-generator https://github.com/rseng/pdf-generator.git
cp _events/talks/event-001.md ci/
docker run --env-file ci/env.txt -v `pwd`:/github/workspace --rm -it rseng/pdf-generator

then you'll have a file named ci/talks/event-001.pdf that you can copy to the downloads folder

johanphilips commented 3 years ago

ok great, will give that a try. was almost there, by looking at the workflow action but couldn't get the docker run command going such that it finds the event md, logo and template. What's in your env.txt, is it the one from the website and are you executing it with relative path to sorse.github.io repo ?

johanphilips commented 3 years ago

yikes, that's a large image with ubuntu and texlive !

Chilipp commented 3 years ago

What's in your env.txt, is it the one from the website and are you executing it with relative path to sorse.github.io repo ?

hey! yes, sorry. all these commands are ran from the root of the sorse.github.io repository. Here is the file: https://github.com/SORSE/sorse.github.io/blob/master/ci/env.txt

Chilipp commented 3 years ago

yikes, that's a large image with ubuntu and texlive !

indeed :sweat_smile:

johanphilips commented 3 years ago

That worked out of the box! Thanks! event-000.pdf