xu-cheng / latex-action

:octocat: GitHub Action to compile LaTeX documents
https://github.com/xu-cheng/latex-action
MIT License
1.14k stars 136 forks source link

Easiest way to have a link to download latest? #10

Closed jlperla closed 4 years ago

jlperla commented 4 years ago

I am very excited to use the action, but I can't figure out a crucial component of the workflow...

My use case is that I always want to be able to get the latest pdfs from master from the latex builds, and easily link to them from the front README and for sending links to less technical coauthors. I don't care about versioning official releases, so what is most important is just a simple way to see the latest.

xu-cheng commented 4 years ago

I would suggest you to push the pdf files to GitHub Pages and link them in the README file.

You can follow a similar workflow in this repo: https://github.com/xu-cheng/latex-tutorial

jlperla commented 4 years ago

Thank you so much. That would be a great thing to highlight.

Sadly, my main need is for private repos while working on research. Any thoughts on that, as I don't believe github pages works with private?

Or perhaps you can just publish to the ghpages branch, link to master of that, and not actually publish?

xu-cheng commented 4 years ago

With GitHub Actions, you can send the PDF files to anywhere you want. For your case, it depends on whether you want to make the pdf file public accessible. If not, you can just push it into a separated branch and link to it.

jlperla commented 4 years ago

@xu-cheng (cc @arnavs) FYI: here is a set of instructions, which details the setup for pushing to a docs branch as you suggested. This works with private repos: https://github.com/ubcecon/tutorials/blob/master/latex_actions.md