GitHub Action for building LaTeX and Markdown documents using a Makefile.
The Docker image is built based on the configuration in document-builder/ and it is deployed on Docker Hub.
To build the image, navigate to the document-builder/ directory.
cd document-builder
docker build --tag ldbc/document-builder:2021 .
docker tag ldbc/document-builder:2021 ldbc/document-builder:latestTo deploy the image on Docker Hub, run:
docker push ldbc/document-builder:2021
docker push ldbc/document-builder:latestTo use this Docker image, create a Makefile that performs the required build steps. Then, test the image as follows;
docker run --rm -v `pwd`:"/github/workspace" ldbc/document-builder [arguments]The [arguments] are optional and are passed to the Makefile.
Create a .yml workflow file in your repository under .github/workflows/.
For example, to run make ci, use the following configuration:
jobs:
job_name:
runs-on: ...
name: ...
steps:
- name: Build PDFs with the LaTeX engine in Docker
uses: ldbc/document-builder-actions@main
with:
makefile-arguments: ci