Skip to content
book-open

GitHub Action

Lyx2Pdf

v1.0.4 Latest version

Lyx2Pdf

book-open

Lyx2Pdf

Github Action for generating pdf from lyx

Installation

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

              

- name: Lyx2Pdf

uses: vaggeliskls/lyx2pdf-action@v1.0.4

Learn more about this action in vaggeliskls/lyx2pdf-action

Choose a version

lyx2pdf 📔

Github action to compile Lyx/Latex documents and convert to pdf

Example

  1. Examples of usage
name: Lyx2PDF
on: [push]
jobs:
  lyx2pdf:
    runs-on: ubuntu-latest
    steps:
      - name: Set up Git repository
        uses: actions/checkout@v2
      - name: Generate Pdf from lyx
        uses: vaggeliskls/lyx2pdf@v1
        with:
          root_file: main.lyx

The PDF file will be in the same folder as that of the Lyx source

  1. Example of usage with commit pdf
name: Lyx2PDF
on: [push]
jobs:
  lyx2pdf:
    runs-on: ubuntu-latest
    steps:
      - name: Set up Git repository
        uses: actions/checkout@v2

      - name: Generate Pdf from lyx
        uses: vaggeliskls/lyx2pdf@v1
        with:
          root_file: main.lyx

      - name: Commit and push
        run: |
          git config --global user.email "you@example.com"
          git config --global user.name "Your Name"
          git add .
          git commit -m "docs: Update Pdf"
          git push origin <branch-name>
        shell: bash

Pdf File will be committed to the repository

  1. Example of usage with upload artifact
name: Lyx2PDF
on: [push]
jobs:
  lyx2pdf:
    runs-on: ubuntu-latest
    steps:
      - name: Set up Git repository
        uses: actions/checkout@v2

      - name: Generate Pdf from lyx
        uses: vaggeliskls/lyx2pdf@v1
        with:
          root_file: main.lyx

      - uses: actions/upload-artifact@v2
        with:
          name: PDF
          path: main.pdf

To upload a zip containing the PDF file to the workflow tab

License

MIT