Skip to content

Reusable workflow which compiles and releases LaTeX and Typst documents every time commited

Notifications You must be signed in to change notification settings

34j/latex-typst-compile-and-release-reusable-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

Reusable GitHub Actions Workflow for Building LaTeX/Typst Document and Creating Release

Features

  • Support both LaTeX (LaTeXmk or Cluttex) and Typst
  • Install custom fonts from Google Fonts
  • Comment the link to the Compiled PDF file in the Pull Request
  • Automatically create a release with the compiled PDF file attached

Usage

  1. Set Settings/Actions/General/Workflow Permissions to Read and write permissions
  2. .github/workflows/release.yaml
name: Build LaTeX/Typst document and Create Release

on:
  push:
    branches:
      - main
  pull_request:

jobs:
  release:
    uses: 34j/latex-typst-compile-and-release-reusable-workflow/.github/workflows/release.yaml@main
    secrets:
      gh_pat: ${{ secrets.GITHUB_TOKEN }}

Advanced Usage

name: Build LaTeX/Typst document and Create Release

on:
  push:
    branches:
      - main
  pull_request:

jobs:
  release:
    uses: 34j/latex-typst-compile-and-release-reusable-workflow/.github/workflows/release.yaml@main
    with:
      cluttex_parallel: true
      cluttex: false
      latexmk: false
      typst: true
      upload_artifact: true
      upload_release: true
      fonts: '"Roboto" "Noto Sans" "Noto Serif"' # Google Fonts
    secrets:
      gh_pat: ${{ secrets.GITHUB_TOKEN }}

About

Reusable workflow which compiles and releases LaTeX and Typst documents every time commited

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published