abstract fix #93
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Copied from https://github.com/andycasey/paper-maker/blob/master/action.yml | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
MANUSCRIPT_PATH: ./polpars # exclude the '.tex' / '.pdf' extension! | |
LATEX: pdflatex -shell-escape | |
BIBTEX: bibtex | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install texlive | |
run: | | |
sudo apt-get install texlive-publishers \ | |
texlive-latex-recommended \ | |
texlive-latex-extra \ | |
texlive-fonts-recommended \ | |
texlive-fonts-extra \ | |
texlive-science | |
- name: Build paper | |
run: | | |
cd ${MANUSCRIPT_PATH%/*} | |
${LATEX} ${MANUSCRIPT_PATH##*/}.tex | |
${BIBTEX} ${MANUSCRIPT_PATH##*/}.aux | |
${LATEX} ${MANUSCRIPT_PATH##*/}.tex | |
${LATEX} ${MANUSCRIPT_PATH##*/}.tex | |
- name: Push paper | |
run: | | |
git checkout --orphan ${GITHUB_REF##*/}-pdf | |
git rm -rf .github/ | |
cd ${MANUSCRIPT_PATH%/*} | |
git rm -rf . | |
git add -f ${MANUSCRIPT_PATH##*/}.pdf | |
git -c user.name='paper-maker' -c user.email='paper-maker' commit -m "update pdf" | |
git push -q -f https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} ${GITHUB_REF##*/}-pdf |