Skip to content

Commit

Permalink
Added Publish LaTeX document action
Browse files Browse the repository at this point in the history
  • Loading branch information
Puckoland committed Jul 24, 2022
1 parent 332fdc3 commit 8385c2b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish_documents.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish LaTeX document
on:
release:
types: [published]
jobs:
publish_latex_documents:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
pre_compile: |
ln -sf /opt/texlive/texdir/texmf-dist/scripts/xindy/xindy.pl /opt/texlive/texdir/bin/x86_64-linuxmusl/xindy
ln -sf /opt/texlive/texdir/texmf-dist/scripts/xindy/texindy.pl /opt/texlive/texdir/bin/x86_64-linuxmusl/texindy
wget https://sourceforge.net/projects/xindy/files/xindy-source-components/2.4/xindy-kernel-3.0.tar.gz
tar xf xindy-kernel-3.0.tar.gz
cd xindy-kernel-3.0/src
apk add make
apk add clisp --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
make
cp -f xindy.mem /opt/texlive/texdir/bin/x86_64-linuxmusl/
cd ../../
root_file: |
thesis.tex
- name: Add resulting documents to release
uses: softprops/action-gh-release@v1
with:
files: |
thesis.pdf

0 comments on commit 8385c2b

Please sign in to comment.