Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/34j/latex-typst-compile-and-release-reusable-workflow
Reusable workflow which compiles and releases LaTeX and Typst documents every time commited
https://github.com/34j/latex-typst-compile-and-release-reusable-workflow
cluttex github-actions latex release typst
Last synced: 25 days ago
JSON representation
Reusable workflow which compiles and releases LaTeX and Typst documents every time commited
- Host: GitHub
- URL: https://github.com/34j/latex-typst-compile-and-release-reusable-workflow
- Owner: 34j
- Created: 2024-05-26T08:03:48.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-12-12T08:05:03.000Z (about 1 month ago)
- Last Synced: 2024-12-12T09:19:31.913Z (about 1 month ago)
- Topics: cluttex, github-actions, latex, release, typst
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reusable GitHub Actions Workflow for Building LaTeX/Typst Document and Creating Release
## Features
- Support both LaTeX ([LaTeXmk][latexmk] or [Cluttex][cluttex]) and [Typst][typst]
- Install custom fonts from [Google Fonts][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````yaml
name: Build LaTeX/Typst document and Create Releaseon:
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
```yaml
name: Build LaTeX/Typst document and Create Releaseon:
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
runs-on: '["self-hosted", "linux"]' # use self-hosted runner
secrets:
gh_pat: ${{ secrets.GITHUB_TOKEN }}
```[latexmk]: https://ctan.org/pkg/latexmk
[cluttex]: https://ctan.org/pkg/cluttex
[typst]: https://github.com/typst/typst
[google-fonts]: https://fonts.google.com/