commit 87a29572801ef068e52dc297d20bba57326ce283 Author: Edgar P. Burkhart Date: Sun May 14 18:29:36 2023 +0200 Initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7216c1f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM archlinux + +RUN pacman -Syu --noconfirm texlive-most texlive-bibtexextra texlive-fontsextra biber + +COPY entrypoint.sh /root/ + +ENTRYPOINT ["/root/entrypoint.sh"] diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..97a28cd --- /dev/null +++ b/action.yml @@ -0,0 +1,17 @@ +name: "Latexmk" +description: "Run latexmk with most latex packages" +author: edpibu +inputs: + root_file: + description: File to compile + working_directory: + description: Working directory +runs: + using: "docker" + image: "Dockerfile" + args: + - ${{ inputs.working_directory }} + - ${{ inputs.root_file }} + branding: + icon: book + color: blue diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 0000000..6ef2a16 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -e + +cd $1 +latexmk $2