- 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
- Set
Settings/Actions/General/Workflow Permissions
toRead and write permissions
.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 }}
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 }}