Skip to content

Github action to compile Lyx documents and convert to pdf

License

Notifications You must be signed in to change notification settings

vaggeliskls/lyx2pdf-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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