Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
book

GitHub Action

Latexmk

v1.1.0

Latexmk

book

Latexmk

Use the Latex in your Github Actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Latexmk

uses: hspaans/[email protected]

Learn more about this action in hspaans/latexmk-action

Choose a version

latexmk-action

Usage

This GitHub Action run latexmk to convert a LaTeX file into a PDF.

Parameters

Following parameters can be used as step.with keys:

Name Type Default Description
format String pdf Output format for the LaTeX filename
filename String main.tex Source LaTeX filename to process

Example

---
name: CI

on: [push]

jobs:
  build-test:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Code
        uses: actions/checkout@v2

      - name: Generate PDF document
        uses: hspaans/[email protected]
        with:
          format: pdf
          filename: article.tex

Keep up-to-date with GitHub Dependabot

GitHub Actions has native support for Dependabot, to enable it on your GitHub repo all you need to do is add the .github/dependabot.yml file:

---
version: 2
updates:
  - package-ecosystem: github-actions
    directory: /
    schedule:
      interval: daily

Limitation

This action is only available for Linux virtual environments.